Skip to content
Snippets Groups Projects
Commit d210718d authored by Kevin Hilman's avatar Kevin Hilman Committed by Tom Rini
Browse files

common/board_f.c: fix compile error when tracing disabled


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 <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
parent 4d013d8f
No related branches found
No related tags found
No related merge requests found
...@@ -813,7 +813,9 @@ static init_fnc_t init_sequence_f[] = { ...@@ -813,7 +813,9 @@ static init_fnc_t init_sequence_f[] = {
#endif #endif
setup_mon_len, setup_mon_len,
setup_fdt, setup_fdt,
#ifdef CONFIG_TRACE
trace_early_init, trace_early_init,
#endif
initf_malloc, initf_malloc,
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
/* TODO: can this go into arch_cpu_init()? */ /* TODO: can this go into arch_cpu_init()? */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment