Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6122
-gerrit
commit 3f19d9e42f635f639f0bf270b43a8a2c1332bbd2 Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Thu Jun 26 18:14:04 2014 +1000
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 eocallaghan@alterapraxis.com --- src/drivers/pc80/mc146818rtc_early.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/drivers/pc80/mc146818rtc_early.c b/src/drivers/pc80/mc146818rtc_early.c index 0652f27..145fe21 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;