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.

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

+6 -15
+6
include/linux/compiler_attributes.h
··· 273 273 #define __used __attribute__((__used__)) 274 274 275 275 /* 276 + * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute 277 + * clang: https://clang.llvm.org/docs/AttributeReference.html#nodiscard-warn-unused-result 278 + */ 279 + #define __must_check __attribute__((__warn_unused_result__)) 280 + 281 + /* 276 282 * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-weak-function-attribute 277 283 * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-weak-variable-attribute 278 284 */
-6
include/linux/compiler_types.h
··· 121 121 unsigned long constant; 122 122 }; 123 123 124 - #ifdef CONFIG_ENABLE_MUST_CHECK 125 - #define __must_check __attribute__((__warn_unused_result__)) 126 - #else 127 - #define __must_check 128 - #endif 129 - 130 124 #if defined(CC_USING_HOTPATCH) 131 125 #define notrace __attribute__((hotpatch(0, 0))) 132 126 #elif defined(CC_USING_PATCHABLE_FUNCTION_ENTRY)
-8
lib/Kconfig.debug
··· 295 295 296 296 endif # DEBUG_INFO 297 297 298 - config ENABLE_MUST_CHECK 299 - bool "Enable __must_check logic" 300 - default y 301 - help 302 - Enable the __must_check logic in the kernel build. Disable this to 303 - suppress the "warning: ignoring return value of 'foo', declared with 304 - attribute warn_unused_result" messages. 305 - 306 298 config FRAME_WARN 307 299 int "Warn for stack frames larger than" 308 300 range 0 8192
-1
tools/testing/selftests/wireguard/qemu/debug.config
··· 1 1 CONFIG_LOCALVERSION="-debug" 2 - CONFIG_ENABLE_MUST_CHECK=y 3 2 CONFIG_FRAME_POINTER=y 4 3 CONFIG_STACK_VALIDATION=y 5 4 CONFIG_DEBUG_KERNEL=y