Author: stepan Date: Wed Mar 17 04:44:45 2010 New Revision: 5246 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5246
Log: fix minor warnings in RTC code when HAVE_OPTION_TABLE is disabled. Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/src/arch/i386/boot/coreboot_table.c trunk/src/pc80/mc146818rtc.c
Modified: trunk/src/arch/i386/boot/coreboot_table.c ============================================================================== --- trunk/src/arch/i386/boot/coreboot_table.c Wed Mar 17 04:40:23 2010 (r5245) +++ trunk/src/arch/i386/boot/coreboot_table.c Wed Mar 17 04:44:45 2010 (r5246) @@ -185,6 +185,7 @@ return mainboard; }
+#if (CONFIG_HAVE_OPTION_TABLE == 1) static struct cmos_checksum *lb_cmos_checksum(struct lb_header *header) { struct lb_record *rec; @@ -202,6 +203,7 @@ return cmos_checksum; } +#endif
static void lb_strings(struct lb_header *header) {
Modified: trunk/src/pc80/mc146818rtc.c ============================================================================== --- trunk/src/pc80/mc146818rtc.c Wed Mar 17 04:40:23 2010 (r5245) +++ trunk/src/pc80/mc146818rtc.c Wed Mar 17 04:44:45 2010 (r5246) @@ -95,6 +95,7 @@ outb(val, RTC_BASE_PORT + offs + 1); }
+#if CONFIG_HAVE_OPTION_TABLE static int rtc_checksum_valid(int range_start, int range_end, int cks_loc) { int i; @@ -120,6 +121,7 @@ cmos_write(((sum >> 8) & 0x0ff), cks_loc); cmos_write(((sum >> 0) & 0x0ff), cks_loc+1); } +#endif
#if CONFIG_ARCH_X86 #define RTC_CONTROL_DEFAULT (RTC_24H)