]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
MIPS: SMTC: fix implicit declaration of set_vi_handler
authorFlorian Fainelli <florian@openwrt.org>
Fri, 8 Feb 2013 09:45:14 +0000 (09:45 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 19 Feb 2013 08:36:39 +0000 (09:36 +0100)
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

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4931/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/kernel/smtc.c

index 1d47843d3cc0211d3259930ef48596316afc2cfc..0822232b62fccb43316088d1dcd3e62b2e2eda05 100644 (file)
@@ -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