Commit 533ffc28 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] rtc warning fix

drivers/char/rtc.c:116: warning: 'hpet_rtc_interrupt' defined but not used

Cc: Jan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 92a3d03a
...@@ -113,7 +113,12 @@ static int rtc_has_irq = 1; ...@@ -113,7 +113,12 @@ static int rtc_has_irq = 1;
#define hpet_set_rtc_irq_bit(arg) 0 #define hpet_set_rtc_irq_bit(arg) 0
#define hpet_rtc_timer_init() do { } while (0) #define hpet_rtc_timer_init() do { } while (0)
#define hpet_rtc_dropped_irq() 0 #define hpet_rtc_dropped_irq() 0
static irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id) {return 0;} #ifdef RTC_IRQ
static irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id)
{
return 0;
}
#endif
#else #else
extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id);
#endif #endif
......
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