Skip to content

Commit

Permalink
[PATCH] lib/radix-tree: Fix "nocast type" warnings
Browse files Browse the repository at this point in the history
Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Victor Fusco authored and Linus Torvalds committed Sep 10, 2005
1 parent d533f67 commit 00b61f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/linux/radix-tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

struct radix_tree_root {
unsigned int height;
int gfp_mask;
unsigned int gfp_mask;
struct radix_tree_node *rnode;
};

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/radix-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00b61f5

Please sign in to comment.