diff options
-rw-r--r-- | include/linux/radix-tree.h | 4 | ||||
-rw-r--r-- | lib/radix-tree.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h index 8081a281fa5e..9c51917b1cce 100644 --- a/include/linux/radix-tree.h +++ b/include/linux/radix-tree.h | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | struct radix_tree_root { | 25 | struct radix_tree_root { |
26 | unsigned int height; | 26 | unsigned int height; |
27 | int gfp_mask; | 27 | unsigned int gfp_mask; |
28 | struct radix_tree_node *rnode; | 28 | struct radix_tree_node *rnode; |
29 | }; | 29 | }; |
30 | 30 | ||
@@ -50,7 +50,7 @@ void *radix_tree_delete(struct radix_tree_root *, unsigned long); | |||
50 | unsigned int | 50 | unsigned int |
51 | radix_tree_gang_lookup(struct radix_tree_root *root, void **results, | 51 | radix_tree_gang_lookup(struct radix_tree_root *root, void **results, |
52 | unsigned long first_index, unsigned int max_items); | 52 | unsigned long first_index, unsigned int max_items); |
53 | int radix_tree_preload(int gfp_mask); | 53 | int radix_tree_preload(unsigned int __nocast gfp_mask); |
54 | void radix_tree_init(void); | 54 | void radix_tree_init(void); |
55 | void *radix_tree_tag_set(struct radix_tree_root *root, | 55 | void *radix_tree_tag_set(struct radix_tree_root *root, |
56 | unsigned long index, int tag); | 56 | unsigned long index, int tag); |
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index b972dd29289d..6a8bc6e06431 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c | |||
@@ -110,7 +110,7 @@ radix_tree_node_free(struct radix_tree_node *node) | |||
110 | * success, return zero, with preemption disabled. On error, return -ENOMEM | 110 | * success, return zero, with preemption disabled. On error, return -ENOMEM |
111 | * with preemption not disabled. | 111 | * with preemption not disabled. |
112 | */ | 112 | */ |
113 | int radix_tree_preload(int gfp_mask) | 113 | int radix_tree_preload(unsigned int __nocast gfp_mask) |
114 | { | 114 | { |
115 | struct radix_tree_preload *rtp; | 115 | struct radix_tree_preload *rtp; |
116 | struct radix_tree_node *node; | 116 | struct radix_tree_node *node; |