Skip to content

Commit ac7c3e4

Browse files
masahir0ytorvalds
authored andcommitted
compiler: enable CONFIG_OPTIMIZE_INLINING forcibly
Commit 9012d01 ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING") allowed all architectures to enable this option. A couple of build errors were reported by randconfig, but all of them have been ironed out. Towards the goal of removing CONFIG_OPTIMIZE_INLINING entirely (and it will simplify the 'inline' macro in compiler_types.h), this commit changes it to always-on option. Going forward, the compiler will always be allowed to not inline functions marked 'inline'. This is not a problem for x86 since it has been long used by arch/x86/configs/{x86_64,i386}_defconfig. I am keeping the config option just in case any problem crops up for other architectures. The code clean-up will be done after confirming this is solid. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Nick Desaulniers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Miguel Ojeda <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9dd819a commit ac7c3e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Kconfig.debug

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ config HEADERS_CHECK
311311
relevant for userspace, say 'Y'.
312312

313313
config OPTIMIZE_INLINING
314-
bool "Allow compiler to uninline functions marked 'inline'"
314+
def_bool y
315315
help
316316
This option determines if the kernel forces gcc to inline the functions
317317
developers have marked 'inline'. Doing so takes away freedom from gcc to
@@ -322,8 +322,6 @@ config OPTIMIZE_INLINING
322322
decision will become the default in the future. Until then this option
323323
is there to test gcc for this.
324324

325-
If unsure, say N.
326-
327325
config DEBUG_SECTION_MISMATCH
328326
bool "Enable full Section mismatch analysis"
329327
help

0 commit comments

Comments
 (0)