Skip to contentSkip to conversation

x86: Add function prototype for setup_default_timer_irq

PATCH In review Luis Ortega 2 participants 2 messages Mar 27, 2014 – Mar 31, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Add function prototype for setup_default_timer_irq

This eliminates the following warning in arch/x86/kernel/time.c:
arch/x86/kernel/time.c:69:13: warning: no previous prototype for ‘setup_default_timer_irq’ [-Wmissing-prototypes]

---
 arch/x86/include/asm/time.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/time.h +1 -0
index 92b8aec..935ceb6 100644
@@ -4,6 +4,7 @@
 #include <linux/clocksource.h>
 #include <asm/mc146818rtc.h>
 
+extern void setup_default_timer_irq(void);
 extern void hpet_time_init(void);
 extern void time_init(void);
 

--
1.9.1

#1 lore raw
Quoted 13 lines · Luis Ortega

This eliminates the following warning in arch/x86/kernel/time.c:
arch/x86/kernel/time.c:69:13: warning: no previous prototype for ‘setup_default_timer_irq’ [-Wmissing-prototypes]

---
 arch/x86/include/asm/time.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/time.h +0 -0
index 92b8aec..935ceb6 100644

arch/x86/include/asm/time.h line 9

Quoted 6 lines
arch/x86/include/asm/time.h +1 -0
@@ -4,6 +4,7 @@
 #include <linux/clocksource.h>
 #include <asm/mc146818rtc.h>
 
+extern void setup_default_timer_irq(void);
 extern void hpet_time_init(void);
 extern void time_init(void);

Hm, there's already a prototype for that function, in arch/x86/include/asm/setup.h.

Thanks,

Ingo