Commit 2602a671 authored by Len Brown's avatar Len Brown

ACPI: fix build warning

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: default avatarLen Brown <len.brown@intel.com>
parent 48452e5f
...@@ -84,10 +84,10 @@ acpi_system_write_sleep(struct file *file, ...@@ -84,10 +84,10 @@ acpi_system_write_sleep(struct file *file,
#define HAVE_ACPI_LEGACY_ALARM #define HAVE_ACPI_LEGACY_ALARM
#endif #endif
static u32 cmos_bcd_read(int offset, int rtc_control);
#ifdef HAVE_ACPI_LEGACY_ALARM #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) static int acpi_system_alarm_seq_show(struct seq_file *seq, void *offset)
{ {
u32 sec, min, hr; u32 sec, min, hr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment