Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Andrew Morton and committed by
Linus Torvalds
533ffc28 92a3d03a

+6 -1
+6 -1
drivers/char/rtc.c
··· 113 113 #define hpet_set_rtc_irq_bit(arg) 0 114 114 #define hpet_rtc_timer_init() do { } while (0) 115 115 #define hpet_rtc_dropped_irq() 0 116 - static irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id) {return 0;} 116 + #ifdef RTC_IRQ 117 + static irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id) 118 + { 119 + return 0; 120 + } 121 + #endif 117 122 #else 118 123 extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); 119 124 #endif