From: Tom Rini Date: Mon, 12 Jan 2015 15:11:00 -0500 Subject: [U-Boot] [U-Boot, v3] common/board_f.c: fix compile error when tracing disabled In-Reply-To: <1418674072-15259-1-git-send-email-khilman@kernel.org> References: <1418674072-15259-1-git-send-email-khilman@kernel.org> Message-ID: <20150112201100.GO10826@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Dec 15, 2014 at 12:07:52PM -0800, Kevin Hilman wrote: > From: Kevin Hilman > > 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 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: