Skip to content

Commit 9f16219

Browse files
YuryNorovtorvalds
authored andcommitted
radix-tree: replace gfp.h inclusion with gfp_types.h
Radix tree header includes gfp.h for __GFP_BITS_SHIFT only. Now we have gfp_types.h for this. Fixes powerpc allmodconfig build: In file included from include/linux/nodemask.h:97, from include/linux/mmzone.h:17, from include/linux/gfp.h:7, from include/linux/radix-tree.h:12, from include/linux/idr.h:15, from include/linux/kernfs.h:12, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/pci.h:35, from arch/powerpc/kernel/prom_init.c:24: include/linux/random.h: In function 'add_latent_entropy': >> include/linux/random.h:25:46: error: 'latent_entropy' undeclared (first use in this function); did you mean 'add_latent_entropy'? 25 | add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy)); | ^~~~~~~~~~~~~~ | add_latent_entropy include/linux/random.h:25:46: note: each undeclared identifier is reported only once for each function it appears in Reported-by: kernel test robot <[email protected]> CC: Andy Shevchenko <[email protected]> CC: Andrew Morton <[email protected]> CC: Jason A. Donenfeld <[email protected]> Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 74cbb48 commit 9f16219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/radix-tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define _LINUX_RADIX_TREE_H
1010

1111
#include <linux/bitops.h>
12-
#include <linux/gfp.h>
12+
#include <linux/gfp_types.h>
1313
#include <linux/list.h>
1414
#include <linux/lockdep.h>
1515
#include <linux/math.h>

0 commit comments

Comments
 (0)