From: Kevin Hilman Date: Tue, 9 Dec 2014 23:03:58 +0000 (-0800) Subject: common/board_f.c: fix compile error when tracing disabled X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d210718d9a184c5b00b7ee729e746ff8be5570bb;p=u-boot.git 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 Cc: Tom Rini Signed-off-by: Kevin Hilman --- diff --git a/common/board_f.c b/common/board_f.c index 98c9c728ce..cfd77f8653 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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()? */