From: Liam R. Howlett Date: Wed, 31 Aug 2022 19:32:48 +0000 (-0400) Subject: radix tree test suite: Fix damage by separation of gfp and gfp_types X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d666ed35cd65182f6ee176f85c85212e0163d7b3;p=users%2Fjedix%2Flinux-maple.git radix tree test suite: Fix damage by separation of gfp and gfp_types When the gfp header was split into two for a much smaller header, it broke the radix test suite. Fix the test suite by splitting the header in the test suite as well. Fixes: cb5a065b4ea9 (headers/deps: mm: Split out of ) Signed-off-by: Liam R. Howlett Cc: Ingo Molnar Cc: Yury Norov --- diff --git a/tools/include/linux/gfp.h b/tools/include/linux/gfp.h index 56eec4445bc9..eff24d4368e2 100644 --- a/tools/include/linux/gfp.h +++ b/tools/include/linux/gfp.h @@ -3,25 +3,7 @@ #define _TOOLS_INCLUDE_LINUX_GFP_H #include - -#define __GFP_BITS_SHIFT 26 -#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1)) - -#define __GFP_HIGH 0x20u -#define __GFP_IO 0x40u -#define __GFP_FS 0x80u -#define __GFP_NOWARN 0x200u -#define __GFP_ZERO 0x8000u -#define __GFP_ACCOUNT 0x100000u -#define __GFP_DIRECT_RECLAIM 0x400000u -#define __GFP_KSWAPD_RECLAIM 0x2000000u - -#define __GFP_RECLAIM (__GFP_DIRECT_RECLAIM | __GFP_KSWAPD_RECLAIM) - -#define GFP_ZONEMASK 0x0fu -#define GFP_ATOMIC (__GFP_HIGH | __GFP_KSWAPD_RECLAIM) -#define GFP_KERNEL (__GFP_RECLAIM | __GFP_IO | __GFP_FS) -#define GFP_NOWAIT (__GFP_KSWAPD_RECLAIM) +#include "gfp_types.h" static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) { diff --git a/tools/include/linux/gfp_types.h b/tools/include/linux/gfp_types.h new file mode 100644 index 000000000000..e8b1dc3a8dae --- /dev/null +++ b/tools/include/linux/gfp_types.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _TOOLS_INCLUDE_LINUX_GFP_TYPES_H +#define _TOOLS_INCLUDE_LINUX_GFP_TYPES_H + +#include + +#define __GFP_BITS_SHIFT 26 +#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1)) + +#define __GFP_HIGH 0x20u +#define __GFP_IO 0x40u +#define __GFP_FS 0x80u +#define __GFP_NOWARN 0x200u +#define __GFP_ZERO 0x8000u +#define __GFP_ACCOUNT 0x100000u +#define __GFP_DIRECT_RECLAIM 0x400000u +#define __GFP_KSWAPD_RECLAIM 0x2000000u + +#define __GFP_RECLAIM (__GFP_DIRECT_RECLAIM | __GFP_KSWAPD_RECLAIM) + +#define GFP_ZONEMASK 0x0fu +#define GFP_ATOMIC (__GFP_HIGH | __GFP_KSWAPD_RECLAIM) +#define GFP_KERNEL (__GFP_RECLAIM | __GFP_IO | __GFP_FS) +#define GFP_NOWAIT (__GFP_KSWAPD_RECLAIM) + +#endif /* _TOOLS_INCLUDE_LINUX_GFP_TYPES_H */