Commit d210718d9a184c5b00b7ee729e746ff8be5570bb

Authored by Kevin Hilman
Committed by Tom Rini
1 parent 4d013d8fa8

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: Kevin Hilman <khilman@linaro.org>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -813,7 +813,9 @@
813 813 #endif
814 814 setup_mon_len,
815 815 setup_fdt,
  816 +#ifdef CONFIG_TRACE
816 817 trace_early_init,
  818 +#endif
817 819 initf_malloc,
818 820 #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
819 821 /* TODO: can this go into arch_cpu_init()? */