diff options
| author | Tom Rini <[email protected]> | 2021-05-03 16:48:58 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-07-07 10:17:54 -0400 |
| commit | cb80ff20f2c8392f19248418f9a19a0474661860 (patch) | |
| tree | a4a4ca65c3d6bb8331c0ba9746f300d9709abf7c /include | |
| parent | c48b781581f6c3b24cb40241e90296b0e7f7a30f (diff) | |
bootstage: Eliminate when not enabled
When we do not have bootstage enabled, rather than include an empty
dummy function, we just don't reference it. This saves us space in some
tight builds. This also shows a few cases where show_boot_progress was
incorrectly guarded before.
Cc: Simon Glass <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/bootstage.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/bootstage.h b/include/bootstage.h index 00c85fb86aa..f837a387c8c 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -11,6 +11,8 @@ #ifndef _BOOTSTAGE_H #define _BOOTSTAGE_H +#include <linux/kconfig.h> + /* Flags for each bootstage record */ enum bootstage_flags { BOOTSTAGEF_ERROR = 1 << 0, /* Error record */ @@ -218,7 +220,7 @@ enum bootstage_id { */ ulong timer_get_boot_us(void); -#if defined(USE_HOSTCC) +#if defined(USE_HOSTCC) || !CONFIG_IS_ENABLED(BOOTSTAGE) #define show_boot_progress(val) do {} while (0) #else /** |
