mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 04:34:22 +08:00
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 trace init calls with #ifdef CONFIG_TRACE. While at it, remove the static inline version of the init call from trace.h as suggested by Simon Glass, since it doesnt work. Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@ti.com> Signed-off-by: Kevin Hilman <khilman@linaro.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f411b8f227
commit
9a32561446
@ -89,14 +89,7 @@ int trace_list_calls(void *buff, int buff_size, unsigned int *needed);
|
||||
*/
|
||||
void trace_set_enabled(int enabled);
|
||||
|
||||
#ifdef CONFIG_TRACE_EARLY
|
||||
int trace_early_init(void);
|
||||
#else
|
||||
static inline int trace_early_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Init the trace system
|
||||
|
Loading…
Reference in New Issue
Block a user