[PATCH] lib/radix-tree: Fix "nocast type" warnings
authorVictor Fusco <victor@cetuc.puc-rio.br>
Sat, 10 Sep 2005 07:26:48 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 10 Sep 2005 17:06:28 +0000 (10:06 -0700)
Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/radix-tree.h
lib/radix-tree.c

index 8081a281fa5eb0a195e8b13cc8110c531a2f90f0..9c51917b1cce1f9146ec4b564cb43780cc3f3b21 100644 (file)
@@ -24,7 +24,7 @@
 
 struct radix_tree_root {
        unsigned int            height;
-       int                     gfp_mask;
+       unsigned int            gfp_mask;
        struct radix_tree_node  *rnode;
 };
 
@@ -50,7 +50,7 @@ void *radix_tree_delete(struct radix_tree_root *, unsigned long);
 unsigned int
 radix_tree_gang_lookup(struct radix_tree_root *root, void **results,
                        unsigned long first_index, unsigned int max_items);
-int radix_tree_preload(int gfp_mask);
+int radix_tree_preload(unsigned int __nocast gfp_mask);
 void radix_tree_init(void);
 void *radix_tree_tag_set(struct radix_tree_root *root,
                        unsigned long index, int tag);
index b972dd29289d6669fd353dcd2b3118cd93ab87cb..6a8bc6e06431eec49c1af2f34ec42d7d100e4e0b 100644 (file)
@@ -110,7 +110,7 @@ radix_tree_node_free(struct radix_tree_node *node)
  * success, return zero, with preemption disabled.  On error, return -ENOMEM
  * with preemption not disabled.
  */
-int radix_tree_preload(int gfp_mask)
+int radix_tree_preload(unsigned int __nocast gfp_mask)
 {
        struct radix_tree_preload *rtp;
        struct radix_tree_node *node;