]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
rtc: remove and clarify unneeded externs
authorCarlos R. Mafra <crmafra@ift.unesp.br>
Thu, 24 Jul 2008 04:30:40 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:34 +0000 (10:47 -0700)
When CONFIG_HPET_EMULATE_RTC is defined the external declaration of
hpet_rtc_interrupt is redundant due to the inclusion of hpet.h.

When !CONFIG_HPET_EMULATE_RTC we make it clear that hpet_rtc_interrupt is
not used by defining it to return zero.

Signed-off-by: Carlos R. Mafra <crmafra@ift.unesp.br>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/rtc.c
drivers/rtc/rtc-cmos.c

index d1569a0d05068e224124669a276826fdfced08c3..dbefbb30ed44af80c55796d48e54dad0a4716a31 100644 (file)
@@ -121,8 +121,6 @@ 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
 
 /*
index d7bb9bac71df9494a6b18b90b52c0c23b986a272..94b89a2d9c2eba85de92affd3d1a909bfd0925cd 100644 (file)
 #define hpet_rtc_timer_init()                  do { } while (0)
 #define hpet_register_irq_handler(h)           0
 #define hpet_unregister_irq_handler(h)         do { } while (0)
-extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id);
+static irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id)
+{
+       return 0;
+}
 #endif
 
 struct cmos_rtc {