mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user