[coreboot-gerrit] Patch set updated for coreboot: a223a6e drivers/pc80/mc146818rtc_early.c: Silence unused func complaints
Edward O'Callaghan (eocallaghan@alterapraxis.com)
gerrit at coreboot.org
Thu Jun 26 10:34:41 CEST 2014
Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6122
-gerrit
commit a223a6e405d1b9e95b6931f383bd94800a598d07
Author: Edward O'Callaghan <eocallaghan at 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 at 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;
More information about the coreboot-gerrit
mailing list