Skip to content

Commit dcead6e

Browse files
geertuglaubitz
authored andcommitted
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 <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/23ec2c88168bd5b7e294828221531eed2f3eede8.1709326528.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
1 parent 369d135 commit dcead6e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

arch/sh/include/asm/tlb.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ static inline void tlb_unwire_entry(void)
2424
BUG();
2525
}
2626
#endif /* CONFIG_CPU_SH4 */
27+
28+
asmlinkage int handle_tlbmiss(struct pt_regs *regs, unsigned long error_code,
29+
unsigned long address);
30+
2731
#endif /* CONFIG_MMU */
2832
#endif /* __ASSEMBLY__ */
2933
#endif /* __ASM_SH_TLB_H */

arch/sh/mm/tlbex_32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/kdebug.h>
1515
#include <asm/mmu_context.h>
1616
#include <asm/thread_info.h>
17+
#include <asm/tlb.h>
1718

1819
/*
1920
* Called with interrupts disabled.

0 commit comments

Comments
 (0)