aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/compiler_types.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-01-04 10:47:38 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-01-04 10:47:38 -0800
commitf4f6a2e329523e1a795e5e5c0799feee997aa053 (patch)
treefefe562edc36631a79f5af415f9f6088791fcfef /include/linux/compiler_types.h
parentLinux 5.11-rc2 (diff)
parentCompiler Attributes: remove CONFIG_ENABLE_MUST_CHECK (diff)
downloadwireguard-linux-f4f6a2e329523e1a795e5e5c0799feee997aa053.tar.xz
wireguard-linux-f4f6a2e329523e1a795e5e5c0799feee997aa053.zip
Merge tag 'compiler-attributes-for-linus-v5.11' of git://github.com/ojeda/linux
Pull ENABLE_MUST_CHECK removal from Miguel Ojeda: "Remove CONFIG_ENABLE_MUST_CHECK (Masahiro Yamada)" Note that this removes the config option by making the must-check unconditional, not by removing must check itself. * tag 'compiler-attributes-for-linus-v5.11' of git://github.com/ojeda/linux: Compiler Attributes: remove CONFIG_ENABLE_MUST_CHECK
Diffstat (limited to 'include/linux/compiler_types.h')
-rw-r--r--include/linux/compiler_types.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
index bbaa39e98f9f..e5dd5a4ae946 100644
--- a/include/linux/compiler_types.h
+++ b/include/linux/compiler_types.h
@@ -121,12 +121,6 @@ struct ftrace_likely_data {
unsigned long constant;
};
-#ifdef CONFIG_ENABLE_MUST_CHECK
-#define __must_check __attribute__((__warn_unused_result__))
-#else
-#define __must_check
-#endif
-
#if defined(CC_USING_HOTPATCH)
#define notrace __attribute__((hotpatch(0, 0)))
#elif defined(CC_USING_PATCHABLE_FUNCTION_ENTRY)