From 9a325614469f82bec4d50a8f9dd0b6288c16be73 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Mon, 15 Dec 2014 12:07:52 -0800 Subject: 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: Kevin Hilman Acked-by: Simon Glass --- include/trace.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include/trace.h') diff --git a/include/trace.h b/include/trace.h index 871327fb35..09a38d782f 100644 --- a/include/trace.h +++ b/include/trace.h @@ -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 -- cgit v1.2.1