ACPI: fix build warning
authorLen Brown <len.brown@intel.com>
Fri, 9 Jan 2009 07:10:16 +0000 (02:10 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 9 Jan 2009 07:10:16 +0000 (02:10 -0500)
when CONFIG_RTC_DRV_CMOS=m
and thus !defined(HAVE_ACPI_LEGACY_ALARM)

drivers/acpi/proc.c:85: warning: ‘cmos_bcd_read’ declared ‘static’ but
never defined

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep/proc.c

index 232d4b64140b697618f4126c37a69d7ec1b0435c..2d0e6b577502c482552bc81cf082df42cbfa0e1b 100644 (file)
@@ -84,10 +84,10 @@ acpi_system_write_sleep(struct file *file,
 #define        HAVE_ACPI_LEGACY_ALARM
 #endif
 
-static u32 cmos_bcd_read(int offset, int rtc_control);
-
 #ifdef HAVE_ACPI_LEGACY_ALARM
 
+static u32 cmos_bcd_read(int offset, int rtc_control);
+
 static int acpi_system_alarm_seq_show(struct seq_file *seq, void *offset)
 {
        u32 sec, min, hr;