Commit 00b61f51 authored by Victor Fusco's avatar Victor Fusco Committed by Linus Torvalds

[PATCH] lib/radix-tree: Fix "nocast type" warnings

Fix the sparse warning "implicit cast to nocast type"
Signed-off-by: default avatarVictor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d533f671
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
struct radix_tree_root { struct radix_tree_root {
unsigned int height; unsigned int height;
int gfp_mask; unsigned int gfp_mask;
struct radix_tree_node *rnode; struct radix_tree_node *rnode;
}; };
...@@ -50,7 +50,7 @@ void *radix_tree_delete(struct radix_tree_root *, unsigned long); ...@@ -50,7 +50,7 @@ void *radix_tree_delete(struct radix_tree_root *, unsigned long);
unsigned int unsigned int
radix_tree_gang_lookup(struct radix_tree_root *root, void **results, radix_tree_gang_lookup(struct radix_tree_root *root, void **results,
unsigned long first_index, unsigned int max_items); 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_init(void);
void *radix_tree_tag_set(struct radix_tree_root *root, void *radix_tree_tag_set(struct radix_tree_root *root,
unsigned long index, int tag); unsigned long index, int tag);
......
...@@ -110,7 +110,7 @@ radix_tree_node_free(struct radix_tree_node *node) ...@@ -110,7 +110,7 @@ radix_tree_node_free(struct radix_tree_node *node)
* success, return zero, with preemption disabled. On error, return -ENOMEM * success, return zero, with preemption disabled. On error, return -ENOMEM
* with preemption not disabled. * 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_preload *rtp;
struct radix_tree_node *node; struct radix_tree_node *node;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment