DORMANTno replies

[PATCH] MIPS: MSP71xx: Fix missing asm/setup.h include

From: Paul Burton <hidden>
Date: 2017-03-30 21:17:08
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

Building msp71xx_defconfig currently fails due to a missing inclusion of
asm/setup.h leading to:

  arch/mips/pmcs-msp71xx/msp_smp.c: In function ‘msp_vsmp_int_init’:
  arch/mips/pmcs-msp71xx/msp_smp.c:72:2: error: implicit declaration of
  function ‘set_vi_handler’ [-Werror=implicit-function-declaration]
    set_vi_handler(MIPS_CPU_IPI_RESCHED_IRQ, ipi_resched_dispatch);
    ^
  cc1: all warnings being treated as errors

Fix this by including asm/setup.h to obtain the declaration of
set_vi_handler().

Signed-off-by: Paul Burton <redacted>
Cc: Ralf Baechle <redacted>
Cc: linux-mips@linux-mips.org
Cc: trivial@kernel.org

---

 arch/mips/pmcs-msp71xx/msp_smp.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/mips/pmcs-msp71xx/msp_smp.c b/arch/mips/pmcs-msp71xx/msp_smp.c
index ffa0f7101a97..6441bd2514c5 100644
--- a/arch/mips/pmcs-msp71xx/msp_smp.c
+++ b/arch/mips/pmcs-msp71xx/msp_smp.c
@@ -21,6 +21,7 @@
  */
 #include <linux/smp.h>
 #include <linux/interrupt.h>
+#include <asm/setup.h>
 
 #ifdef CONFIG_MIPS_MT_SMP
 #define MIPS_CPU_IPI_RESCHED_IRQ 0	/* SW int 0 for resched */
-- 
2.12.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help