]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sh: tlb: Add missing forward declaration for handle_tlbmiss()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 1 Mar 2024 21:02:18 +0000 (22:02 +0100)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 2 May 2024 10:01:23 +0000 (12:01 +0200)
arch/sh/mm/tlbex_32.c:22:1: warning: no previous prototype for ‘handle_tlbmiss’ [-Wmissing-prototypes]

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/23ec2c88168bd5b7e294828221531eed2f3eede8.1709326528.git.geert+renesas@glider.be
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/include/asm/tlb.h
arch/sh/mm/tlbex_32.c

index aeb8915e92549609247349de3d1248a29a733b10..ddf324bfb9a097211f43e2716975550f1cb49a72 100644 (file)
@@ -24,6 +24,10 @@ static inline void tlb_unwire_entry(void)
        BUG();
 }
 #endif /* CONFIG_CPU_SH4 */
+
+asmlinkage int handle_tlbmiss(struct pt_regs *regs, unsigned long error_code,
+                             unsigned long address);
+
 #endif /* CONFIG_MMU */
 #endif /* __ASSEMBLY__ */
 #endif /* __ASM_SH_TLB_H */
index 1c53868632ee4c69b63e19a340cc02993adfa918..7d58578c15f4ef55ed37a9581cce352de1154dae 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/kdebug.h>
 #include <asm/mmu_context.h>
 #include <asm/thread_info.h>
+#include <asm/tlb.h>
 
 /*
  * Called with interrupts disabled.