Skip to contentSkip to conversation

h8300: fix a compile error in arch/h8300/kernel/time.c

PATCH New Cong Wang 1 participant 1 message Jul 4, 2012

lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 h8300: fix a compile error in arch/h8300/kernel/time.c

On h8300 we got:
arch/h8300/kernel/time.c:39:2: error: implicit declaration of function 'get_irq_regs' [-Werror=implicit-function-declaration]

this is due to we forgot to #include <asm/irq_regs.h>.

Cc Yoshinori Sato <[email protected]>
Cc Andrew Morton <[email protected]>

---

arch/h8300/kernel/time.c +1 -0
index 32263a1..20d2140 100644
@@ -28,6 +28,7 @@
 
 #include <asm/io.h>
 #include <asm/timer.h>
+#include <asm/irq_regs.h>
 
 #define	TICK_SIZE (tick_nsec / 1000)