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>
This commit is contained in:
parent
78d33b649e
commit
ec79d7a66e
|
@ -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;
|
unsigned char byte;
|
||||||
byte = cmos_read(RTC_BOOT_BYTE);
|
byte = cmos_read(RTC_BOOT_BYTE);
|
||||||
return (byte & (1 << 1));
|
return (byte & (1 << 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int do_normal_boot(void)
|
static inline __attribute__((unused)) int do_normal_boot(void)
|
||||||
{
|
{
|
||||||
unsigned char byte;
|
unsigned char byte;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue