Commit e7406d94 authored by Richard Henderson's avatar Richard Henderson

Fix two defined but not used warnings by wrapping the

variables in #if RTC_IRQ.
parent a01c910d
...@@ -86,7 +86,9 @@ static unsigned long rtc_port; ...@@ -86,7 +86,9 @@ static unsigned long rtc_port;
static int rtc_irq = PCI_IRQ_NONE; static int rtc_irq = PCI_IRQ_NONE;
#endif #endif
#if RTC_IRQ
static int rtc_has_irq = 1; static int rtc_has_irq = 1;
#endif
/* /*
* We sponge a minor off of the misc major. No need slurping * We sponge a minor off of the misc major. No need slurping
...@@ -99,7 +101,9 @@ static struct fasync_struct *rtc_async_queue; ...@@ -99,7 +101,9 @@ static struct fasync_struct *rtc_async_queue;
static DECLARE_WAIT_QUEUE_HEAD(rtc_wait); static DECLARE_WAIT_QUEUE_HEAD(rtc_wait);
#if RTC_IRQ
static struct timer_list rtc_irq_timer; static struct timer_list rtc_irq_timer;
#endif
static ssize_t rtc_read(struct file *file, char *buf, static ssize_t rtc_read(struct file *file, char *buf,
size_t count, loff_t *ppos); size_t count, loff_t *ppos);
......
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