Skip to content

Commit b29fea3

Browse files
committed
MIPS: Export tlbmiss_handler_setup_pgd near its definition
We export tlbmiss_handler_setup_pgd in arch/mips/mm/tlbex.c close to a declaration of it, rather than close to its definition as is standard. We've supported exporting symbols in assembly code since commit 22823ab ("EXPORT_SYMBOL() for asm"), so move the export to follow the function's (stub) definition. Signed-off-by: Paul Burton <paul.burton@mips.com>
1 parent 22f20a1 commit b29fea3

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎arch/mips/include/asm/asm-prototypes.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
#include <asm-generic/asm-prototypes.h>
66
#include <linux/uaccess.h>
77
#include <asm/ftrace.h>
8+
#include <asm/mmu_context.h>

‎arch/mips/mm/tlb-funcs.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Copyright (C) 2012 Ralf Baechle <ralf@linux-mips.org>
1313
*/
1414
#include <asm/asm.h>
15+
#include <asm/export.h>
1516
#include <asm/regdef.h>
1617

1718
#define FASTPATH_SIZE 128
@@ -22,6 +23,7 @@ LEAF(tlbmiss_handler_setup_pgd)
2223
.space 64
2324
END(tlbmiss_handler_setup_pgd)
2425
EXPORT(tlbmiss_handler_setup_pgd_end)
26+
EXPORT_SYMBOL_GPL(tlbmiss_handler_setup_pgd)
2527

2628
LEAF(handle_tlbm)
2729
.space FASTPATH_SIZE * 4

‎arch/mips/mm/tlbex.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,6 @@ extern u32 handle_tlbs[], handle_tlbs_end[];
15761576
extern u32 handle_tlbm[], handle_tlbm_end[];
15771577
extern u32 tlbmiss_handler_setup_pgd_start[];
15781578
extern u32 tlbmiss_handler_setup_pgd[];
1579-
EXPORT_SYMBOL_GPL(tlbmiss_handler_setup_pgd);
15801579
extern u32 tlbmiss_handler_setup_pgd_end[];
15811580

15821581
static void build_setup_pgd(void)

0 commit comments

Comments
 (0)