compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

Commit 9012d011660e ("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

I am keeping the config option just in case any problem crops up for other

The code clean-up will be done after confirming this is solid.

Signed-off-by: Masahiro Yamada <>
Acked-by: Nick Desaulniers <>
Cc: Ingo Molnar <>
Cc: Borislav Petkov <>
Cc: Miguel Ojeda <>
Signed-off-by: Andrew Morton <>
1 file changed