diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-03-01 22:02:18 +0100 |
---|---|---|
committer | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2024-05-02 12:01:23 +0200 |
commit | dcead6e5096295e6fdcf91a2168d3173699854f8 (patch) | |
tree | e8e7ba8009d4df94ce21c1e527044d8fd6312540 /arch/sh | |
parent | 369d13571bd30fb25f201df0c0dd7db4ff956998 (diff) | |
download | linux-dcead6e5096295e6fdcf91a2168d3173699854f8.tar.gz linux-dcead6e5096295e6fdcf91a2168d3173699854f8.tar.bz2 linux-dcead6e5096295e6fdcf91a2168d3173699854f8.zip |
sh: tlb: Add missing forward declaration for handle_tlbmiss()
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>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/tlb.h | 4 | ||||
-rw-r--r-- | arch/sh/mm/tlbex_32.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/include/asm/tlb.h b/arch/sh/include/asm/tlb.h index aeb8915e9254..ddf324bfb9a0 100644 --- a/arch/sh/include/asm/tlb.h +++ b/arch/sh/include/asm/tlb.h @@ -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 */ diff --git a/arch/sh/mm/tlbex_32.c b/arch/sh/mm/tlbex_32.c index 1c53868632ee..7d58578c15f4 100644 --- a/arch/sh/mm/tlbex_32.c +++ b/arch/sh/mm/tlbex_32.c @@ -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. |