common/board_f.c: fix compile error when tracing disabled
PATCH v2 1/1 common/board_f.c: fix compile error when tracing disabled
From: Kevin Hilman <[email protected]>
When CONFIG_TRACE is disabled, linking fails with:
common/built-in.o:(.data.init_sequence_f+0x8): undefined reference to `trace_early_init'
To fix, wrap the call to trace_early_init() with #ifdef CONFIG_TRACE.
Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
Signed-off-by Kevin Hilman <[email protected]>
---
Applies to v2015.01-rc3
v2: Also remove the static inline stuff from trace.h
common/board_f.c | 2 ++ 1 file changed, 2 insertions(+)
common/board_f.c +2 -0
@@ -813,7 +813,9 @@ static init_fnc_t init_sequence_f[] = {#endif setup_mon_len, setup_fdt, +#ifdef CONFIG_TRACE trace_early_init, +#endif initf_malloc,#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)/* TODO: can this go into arch_cpu_init()? */
Signature · 1 line
2.1.3