summaryrefslogtreecommitdiff
path: root/src/drivers/pc80/mc146818rtc_early.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-06-26 18:14:04 +1000
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-06-29 15:03:49 +0200
commitec79d7a66ec18874f3f0ac6a8e6e84f4d23be1d9 (patch)
tree292a6c86586a1a3199d284730a8557f295165541 /src/drivers/pc80/mc146818rtc_early.c
parent78d33b649e96dcb5a49f33464e234d1227e88384 (diff)
downloadcoreboot-ec79d7a66ec18874f3f0ac6a8e6e84f4d23be1d9.tar.xz
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> Reviewed-on: http://review.coreboot.org/6122 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/drivers/pc80/mc146818rtc_early.c')
-rw-r--r--src/drivers/pc80/mc146818rtc_early.c4
1 files changed, 2 insertions, 2 deletions
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;