[15/20] mips: mt: include asm/mips_mt.h

Message ID 20231204115710.2247097-16-arnd@kernel.org
State New
Headers
Series mips: address -Wmissing-prototypes warnings |

Commit Message

Arnd Bergmann Dec. 4, 2023, 11:57 a.m. UTC
  From: Arnd Bergmann <arnd@arndb.de>

These two functions have a global prototype but the header is not
included before the function definitions:

arch/mips/kernel/mips-mt.c:50:6: error: no previous prototype for 'mips_mt_regdump' [-Werror=missing-prototypes]
arch/mips/kernel/mips-mt.c:159:6: error: no previous prototype for 'mips_mt_set_cpuoptions' [-Werror=missing-prototypes]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/mips/kernel/mips-mt.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/arch/mips/kernel/mips-mt.c b/arch/mips/kernel/mips-mt.c
index f88b7919f11f..c07d64438b5b 100644
--- a/arch/mips/kernel/mips-mt.c
+++ b/arch/mips/kernel/mips-mt.c
@@ -19,6 +19,7 @@ 
 #include <asm/mipsmtregs.h>
 #include <asm/r4kcache.h>
 #include <asm/cacheflush.h>
+#include <asm/mips_mt.h>
 
 int vpelimit;