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>
This commit is contained in:
parent
9a2036724c
commit
6fb04df9b9
@ -23,6 +23,7 @@ void build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep);
|
||||
void build_tlb_write_entry(u32 **p, struct uasm_label **l,
|
||||
struct uasm_reloc **r,
|
||||
enum tlb_write_entry wmode);
|
||||
void build_tlb_refill_handler(void);
|
||||
|
||||
extern void handle_tlbl(void);
|
||||
extern char handle_tlbl_end[];
|
||||
|
@ -23,11 +23,10 @@
|
||||
#include <asm/io.h>
|
||||
#include <asm/bootinfo.h>
|
||||
#include <asm/cpu.h>
|
||||
#include <asm/tlbex.h>
|
||||
|
||||
#undef DEBUG_TLB
|
||||
|
||||
extern void build_tlb_refill_handler(void);
|
||||
|
||||
/* CP0 hazard avoidance. */
|
||||
#define BARRIER \
|
||||
__asm__ __volatile__( \
|
||||
|
@ -22,10 +22,9 @@
|
||||
#include <asm/hazards.h>
|
||||
#include <asm/mmu_context.h>
|
||||
#include <asm/tlb.h>
|
||||
#include <asm/tlbex.h>
|
||||
#include <asm/tlbmisc.h>
|
||||
|
||||
extern void build_tlb_refill_handler(void);
|
||||
|
||||
/*
|
||||
* LOONGSON-2 has a 4 entry itlb which is a subset of jtlb, LOONGSON-3 has
|
||||
* a 4 entry itlb and a 4 entry dtlb which are subsets of jtlb. Unfortunately,
|
||||
|
Loading…
x
Reference in New Issue
Block a user