Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Victor Fusco and committed by
Linus Torvalds
00b61f51 d533f671

+3 -3
+2 -2
include/linux/radix-tree.h
··· 24 24 25 25 struct radix_tree_root { 26 26 unsigned int height; 27 - int gfp_mask; 27 + unsigned int gfp_mask; 28 28 struct radix_tree_node *rnode; 29 29 }; 30 30 ··· 50 50 unsigned int 51 51 radix_tree_gang_lookup(struct radix_tree_root *root, void **results, 52 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 54 void radix_tree_init(void); 55 55 void *radix_tree_tag_set(struct radix_tree_root *root, 56 56 unsigned long index, int tag);
+1 -1
lib/radix-tree.c
··· 110 110 * success, return zero, with preemption disabled. On error, return -ENOMEM 111 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 115 struct radix_tree_preload *rtp; 116 116 struct radix_tree_node *node;