From: Andrew Morton Date: Fri, 22 Dec 2006 09:06:36 +0000 (-0800) Subject: [PATCH] rtc warning fix X-Git-Tag: v2.6.20-rc2~52 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=533ffc289db9f44c0633d3a7b87243b5740b02b2;p=linux-2.6-omap-h63xx.git [PATCH] rtc warning fix drivers/char/rtc.c:116: warning: 'hpet_rtc_interrupt' defined but not used Cc: Jan Beulich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index e1d70e8b626..664f36c98e6 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c @@ -113,7 +113,12 @@ static int rtc_has_irq = 1; #define hpet_set_rtc_irq_bit(arg) 0 #define hpet_rtc_timer_init() do { } while (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 extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); #endif