summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-05-14 15:30:08 +0300
committerTom Rini <trini@konsulko.com>2020-07-01 18:48:05 +0300
commit72c4d40d8ca7df7920dde4bbf1315c836d7ab7c8 (patch)
treeb5aafeda400415459ebd8e224104a5700d24c1b8 /include
parent1f1a0f3db338cdcaad4f83153d1163aa18e08ed5 (diff)
downloadu-boot-72c4d40d8ca7df7920dde4bbf1315c836d7ab7c8.tar.xz
compilers: Introduce options for forcing inlining on SPL/TPL
There are cases where when we allow the compiler to decide about making inline decisions rather than forcing them it can save us space. For now, we keep the default values for inlining that we have had historically. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compiler_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
index 72393a8c1a..1a3060117f 100644
--- a/include/linux/compiler_types.h
+++ b/include/linux/compiler_types.h
@@ -138,7 +138,7 @@ struct ftrace_likely_data {
* Do not use __always_inline here, since currently it expands to inline again
* (which would break users of __always_inline).
*/
-#if !defined(CONFIG_OPTIMIZE_INLINING)
+#if !CONFIG_IS_ENABLED(OPTIMIZE_INLINING)
#define inline inline __attribute__((__always_inline__)) __gnu_inline \
__inline_maybe_unused notrace
#else