From ec79d7a66ec18874f3f0ac6a8e6e84f4d23be1d9 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Thu, 26 Jun 2014 18:14:04 +1000 Subject: drivers/pc80/mc146818rtc_early.c: Silence unused func complaints Clang complains these functions are unused since they find their way into the bootblock of ROMCC boards by #including the .c file. These static inlines should probably be moved into a header in reality. Change-Id: I9d82a6befb0ac99afab6265f9d3649e419f2887d Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/6122 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- src/drivers/pc80/mc146818rtc_early.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/pc80/mc146818rtc_early.c b/src/drivers/pc80/mc146818rtc_early.c index 0652f27c47..145fe214d1 100644 --- a/src/drivers/pc80/mc146818rtc_early.c +++ b/src/drivers/pc80/mc146818rtc_early.c @@ -42,14 +42,14 @@ static int cmos_chksum_valid(void) } -static inline int last_boot_normal(void) +static inline __attribute__((unused)) int last_boot_normal(void) { unsigned char byte; byte = cmos_read(RTC_BOOT_BYTE); return (byte & (1 << 1)); } -static inline int do_normal_boot(void) +static inline __attribute__((unused)) int do_normal_boot(void) { unsigned char byte; -- cgit v1.2.3