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

Configure Feed

Select the types of activity you want to include in your feed.

tools: fix compilation after gfp_types.h split

When gfp_types.h was split from gfp.h, it broke the radix test suite. Fix
the test suite by using gfp_types.h in the tools gfp.h header.

Link: https://lkml.kernel.org/r/20220902191923.1735933-1-willy@infradead.org
Fixes: cb5a065b4ea9 (headers/deps: mm: Split <linux/gfp_types.h> out of <linux/gfp.h>)
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reported-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
283c05f6 1552fd3e

+2 -20
+1 -20
tools/include/linux/gfp.h
··· 3 3 #define _TOOLS_INCLUDE_LINUX_GFP_H 4 4 5 5 #include <linux/types.h> 6 - 7 - #define __GFP_BITS_SHIFT 26 8 - #define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1)) 9 - 10 - #define __GFP_HIGH 0x20u 11 - #define __GFP_IO 0x40u 12 - #define __GFP_FS 0x80u 13 - #define __GFP_NOWARN 0x200u 14 - #define __GFP_ZERO 0x8000u 15 - #define __GFP_ATOMIC 0x80000u 16 - #define __GFP_ACCOUNT 0x100000u 17 - #define __GFP_DIRECT_RECLAIM 0x400000u 18 - #define __GFP_KSWAPD_RECLAIM 0x2000000u 19 - 20 - #define __GFP_RECLAIM (__GFP_DIRECT_RECLAIM | __GFP_KSWAPD_RECLAIM) 21 - 22 - #define GFP_ZONEMASK 0x0fu 23 - #define GFP_ATOMIC (__GFP_HIGH | __GFP_ATOMIC | __GFP_KSWAPD_RECLAIM) 24 - #define GFP_KERNEL (__GFP_RECLAIM | __GFP_IO | __GFP_FS) 25 - #define GFP_NOWAIT (__GFP_KSWAPD_RECLAIM) 6 + #include <linux/gfp_types.h> 26 7 27 8 static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) 28 9 {
+1
tools/include/linux/gfp_types.h
··· 1 + #include "../../../include/linux/gfp_types.h"