From 14b248b4a2562ed6434a41a8546e83aee3471083 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 22 Sep 2012 14:52:24 +0200 Subject: Fix compilation without CONFIG_WRITE_HIGH_TABLES. Without that fix we have: CC boot/hardwaremain.ramstage.o src/boot/hardwaremain.c: In function 'hardwaremain': src/boot/hardwaremain.c:136:6: error: 'cbmem_post_handling' undeclared (first use in this function) src/boot/hardwaremain.c:136:6: note: each undeclared identifier is reported only once for each function it appears in src/boot/hardwaremain.c:137:3: error: implicit declaration of function 'cbmem_post_handling' [-Werror=implicit-function-declaration] cc1: all warnings being treated as errors make: *** [build/boot/hardwaremain.ramstage.o] Error 1 When compiling without CONFIG_WRITE_HIGH_TABLES Change-Id: Ie45f684a6db0ab55ef469bfcef57e539ae7e994c Signed-off-by: Denis 'GNUtoo' Carikli Reviewed-on: http://review.coreboot.org/1533 Tested-by: build bot (Jenkins) Reviewed-by: Peter Stuge --- src/boot/hardwaremain.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/boot/hardwaremain.c') diff --git a/src/boot/hardwaremain.c b/src/boot/hardwaremain.c index bb7f264c08..099ab3ae78 100644 --- a/src/boot/hardwaremain.c +++ b/src/boot/hardwaremain.c @@ -133,8 +133,10 @@ void hardwaremain(int boot_complete) timestamp_add(TS_DEVICE_DONE, timestamps[5]); timestamp_add_now(TS_CBMEM_POST); +#if CONFIG_WRITE_HIGH_TABLES if (cbmem_post_handling) cbmem_post_handling(); +#endif timestamp_add_now(TS_WRITE_TABLES); -- cgit v1.2.3