From 5c97142419a7b7204786fea5b785c23a3bb41836 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 15 Apr 2014 14:32:53 +1000 Subject: drivers/elog: Fix implicit function declaration issue Fix compilation. Relying on the pre-processor to condition an if statement will lead to warnings of implicitly defined functions. To solve this dilemma add symbols to resolve to at compile time. Change-Id: Id0117528c5579cc1dec750a8a17a76fab4314b3f Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/5504 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- src/include/pc80/mc146818rtc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/pc80/mc146818rtc.h') diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index fd403087a6..cf4a9514c9 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -220,6 +220,8 @@ static inline enum cb_err get_option(void *dest __attribute__((unused)), #define CMOS_POST_EXTRA_DEV_PATH 0x01 void cmos_post_log(void); +#else +static inline void cmos_post_log(void) {} #endif /* CONFIG_CMOS_POST */ #endif /* PC80_MC146818RTC_H */ -- cgit v1.2.3