Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mips: move build_tlb_refill_handler() prototype

Instead of having a declaration for each caller, have one that is shared
with the function definition, which avoids a warning:

arch/mips/mm/tlbex.c:2547:6: error: no previous prototype for 'build_tlb_refill_handler' [-Werror=missing-prototypes]

Link: https://lkml.kernel.org/r/20231204115710.2247097-8-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Arnd Bergmann and committed by
Andrew Morton
6fb04df9 9a203672

+3 -4
+1
arch/mips/include/asm/tlbex.h
··· 23 23 void build_tlb_write_entry(u32 **p, struct uasm_label **l, 24 24 struct uasm_reloc **r, 25 25 enum tlb_write_entry wmode); 26 + void build_tlb_refill_handler(void); 26 27 27 28 extern void handle_tlbl(void); 28 29 extern char handle_tlbl_end[];
+1 -2
arch/mips/mm/tlb-r3k.c
··· 23 23 #include <asm/io.h> 24 24 #include <asm/bootinfo.h> 25 25 #include <asm/cpu.h> 26 + #include <asm/tlbex.h> 26 27 27 28 #undef DEBUG_TLB 28 - 29 - extern void build_tlb_refill_handler(void); 30 29 31 30 /* CP0 hazard avoidance. */ 32 31 #define BARRIER \
+1 -2
arch/mips/mm/tlb-r4k.c
··· 22 22 #include <asm/hazards.h> 23 23 #include <asm/mmu_context.h> 24 24 #include <asm/tlb.h> 25 + #include <asm/tlbex.h> 25 26 #include <asm/tlbmisc.h> 26 - 27 - extern void build_tlb_refill_handler(void); 28 27 29 28 /* 30 29 * LOONGSON-2 has a 4 entry itlb which is a subset of jtlb, LOONGSON-3 has