Commit 6fb04df9 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Andrew Morton

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.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 9a203672
...@@ -23,6 +23,7 @@ void build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep); ...@@ -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, void build_tlb_write_entry(u32 **p, struct uasm_label **l,
struct uasm_reloc **r, struct uasm_reloc **r,
enum tlb_write_entry wmode); enum tlb_write_entry wmode);
void build_tlb_refill_handler(void);
extern void handle_tlbl(void); extern void handle_tlbl(void);
extern char handle_tlbl_end[]; extern char handle_tlbl_end[];
......
...@@ -23,11 +23,10 @@ ...@@ -23,11 +23,10 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/cpu.h> #include <asm/cpu.h>
#include <asm/tlbex.h>
#undef DEBUG_TLB #undef DEBUG_TLB
extern void build_tlb_refill_handler(void);
/* CP0 hazard avoidance. */ /* CP0 hazard avoidance. */
#define BARRIER \ #define BARRIER \
__asm__ __volatile__( \ __asm__ __volatile__( \
......
...@@ -22,10 +22,9 @@ ...@@ -22,10 +22,9 @@
#include <asm/hazards.h> #include <asm/hazards.h>
#include <asm/mmu_context.h> #include <asm/mmu_context.h>
#include <asm/tlb.h> #include <asm/tlb.h>
#include <asm/tlbex.h>
#include <asm/tlbmisc.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 * 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, * a 4 entry itlb and a 4 entry dtlb which are subsets of jtlb. Unfortunately,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment