Commit 9a325614 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 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 <>
Cc: Tom Rini <>
Signed-off-by: default avatarKevin Hilman <>
Acked-by: Simon Glass's avatarSimon Glass <>
parent f411b8f2
......@@ -89,14 +89,7 @@ int trace_list_calls(void *buff, int buff_size, unsigned int *needed);
void trace_set_enabled(int enabled);
int trace_early_init(void);
static inline int trace_early_init(void)
return 0;
* Init the trace system
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment