From ea92185755a578d9a1b5df5cbf7b05ee2cea2390 Mon Sep 17 00:00:00 2001 From: Maciej Pijanka Date: Tue, 27 Oct 2009 14:29:29 +0000 Subject: Add few missing prototypes, and remove few unused (thus lonelly) variables. TODO - x86emu need (imo) some common header with prototypes at least - clog2, ulzma, hardwaremain prototypes added by this patch probably should be moved to some header too. - in src/devices/device_util.c prototype is before function because seems, it is used only within same file, if not it should be moved to debug section of prototypes in include/device/device.h Signed-off-by: Maciej Pijanka Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/pc80/mc146818rtc.c | 2 ++ src/pc80/udelay_io.c | 1 + 2 files changed, 3 insertions(+) (limited to 'src/pc80') diff --git a/src/pc80/mc146818rtc.c b/src/pc80/mc146818rtc.c index e851bdceb8..fe3c13cd1d 100644 --- a/src/pc80/mc146818rtc.c +++ b/src/pc80/mc146818rtc.c @@ -133,8 +133,10 @@ static void rtc_set_checksum(int range_start, int range_end, int cks_loc) void rtc_init(int invalid) { +#if CONFIG_HAVE_OPTION_TABLE unsigned char x; int cmos_invalid, checksum_invalid; +#endif printk_debug("RTC Init\n"); diff --git a/src/pc80/udelay_io.c b/src/pc80/udelay_io.c index 7a5320e370..37f3f73186 100644 --- a/src/pc80/udelay_io.c +++ b/src/pc80/udelay_io.c @@ -1,4 +1,5 @@ #include +#include void udelay(unsigned usecs) { -- cgit v1.2.3