summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2014-12-15 12:07:52 -0800
committerTom Rini <trini@ti.com>2015-01-12 09:38:46 -0500
commit9a325614469f82bec4d50a8f9dd0b6288c16be73 (patch)
tree2ae0b5444f81af474a7dcd521ebabb63a7bdff68 /include
parentf411b8f2270bc75113d60f2ad662f25de6242b7d (diff)
downloadu-boot-imx-9a325614469f82bec4d50a8f9dd0b6288c16be73.zip
u-boot-imx-9a325614469f82bec4d50a8f9dd0b6288c16be73.tar.gz
u-boot-imx-9a325614469f82bec4d50a8f9dd0b6288c16be73.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/trace.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/trace.h b/include/trace.h
index 871327f..09a38d7 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