diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index ff45a4b8fbaaad11c28abc39a9c27c55446d9e6b..6c41224bae68402df430b4ab7d9437c6713e8a08 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -927,7 +927,7 @@ asmlinkage void do_reserved(struct pt_regs *regs)
 	      (regs->cp0_cause & 0x7f) >> 2);
 }
 
-asmlinkage void do_default_vi(struct pt_regs *regs)
+static asmlinkage void do_default_vi(struct pt_regs *regs)
 {
 	show_regs(regs);
 	panic("Caught unexpected vectored interrupt.");