summaryrefslogtreecommitdiff
path: root/tools/include/linux/gfp.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-03-16 01:11:23 +0000
committerMark Brown <broonie@kernel.org>2026-03-16 01:11:23 +0000
commit3e9cda2f4a33c6becc99f8a78946cbd02983852f (patch)
treeb07c29745fc1253262804258f9af581c7e834ebb /tools/include/linux/gfp.h
parent5e2f19ce90d5601f4250b510ed2f41160e5692e9 (diff)
parentc43988dfe25ba358b1df72201327ca719e8a369d (diff)
downloadlinux-next-3e9cda2f4a33c6becc99f8a78946cbd02983852f.tar.gz
linux-next-3e9cda2f4a33c6becc99f8a78946cbd02983852f.zip
ASoC: amd: Move to GPIO descriptors
Linus Walleij <linusw@kernel.org> says: After a quick look and test-compile I can determine that all of these drivers include <linux/gpio.h> for no reason whatsoever, so fixing it is low hanging fruit. Link: https://patch.msgid.link/20260314-asoc-amd-v1-0-31afed06e022@kernel.org
Diffstat (limited to 'tools/include/linux/gfp.h')
-rw-r--r--tools/include/linux/gfp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/include/linux/gfp.h b/tools/include/linux/gfp.h
index 6a10ff5f5be9..9e957b57b694 100644
--- a/tools/include/linux/gfp.h
+++ b/tools/include/linux/gfp.h
@@ -5,6 +5,10 @@
#include <linux/types.h>
#include <linux/gfp_types.h>
+/* Helper macro to avoid gfp flags if they are the default one */
+#define __default_gfp(a,...) a
+#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
+
static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags)
{
return !!(gfp_flags & __GFP_DIRECT_RECLAIM);