Skip to contentSkip to conversation

MIPS: SMTC: fix implicit declaration of set_vi_handler

PATCH In review Florian Fainelli 1 participant 2 messages Feb 8, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: SMTC: fix implicit declaration of set_vi_handler

This patch fixes the following implicit declaration while building with MIPS SMTC support enabled:

arch/mips/kernel/smtc.c: In function 'setup_cross_vpe_interrupts':
arch/mips/kernel/smtc.c:1205:2: error: implicit declaration of function 'set_vi_handler' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

---
Ralf, John,

This is applicable to both mips-for-linux-next and master.

 arch/mips/kernel/smtc.c |    1 +
 1 file changed, 1 insertion(+)
arch/mips/kernel/smtc.c +1 -0
index 1c152a9..7186222 100644
@@ -41,6 +41,7 @@
 #include <asm/addrspace.h>
 #include <asm/smtc.h>
 #include <asm/smtc_proc.h>
+#include <asm/setup.h>
 
 /*
  * SMTC Kernel needs to manipulate low-level CPU interrupt mask
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 7 lines · Florian Fainelli

This patch fixes the following implicit declaration while building with MIPS SMTC support enabled:

arch/mips/kernel/smtc.c: In function 'setup_cross_vpe_interrupts':
arch/mips/kernel/smtc.c:1205:2: error: implicit declaration of function 'set_vi_handler' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

And attached the config file to reproduce the build failure. --
Florian