[U-Boot] [U-Boot, v3] common/board_f.c: fix compile error when tracing disabled

Tom Rini trini at ti.com
Mon Jan 12 21:11:00 CET 2015


On Mon, Dec 15, 2014 at 12:07:52PM -0800, Kevin Hilman wrote:

> From: Kevin Hilman <khilman at linaro.org>
> 
> 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 at chromium.org>
> Cc: Tom Rini <trini at ti.com>
> Signed-off-by: Kevin Hilman <khilman at linaro.org>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150112/888c096f/attachment.pgp>


More information about the U-Boot mailing list