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

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
22823ab419d8 ("EXPORT_SYMBOL() for asm"), so move the export to follow
the function's (stub) definition.

Signed-off-by: Paul Burton <paul.burton@mips.com>

+3 -1
+1
arch/mips/include/asm/asm-prototypes.h
··· 5 5 #include <asm-generic/asm-prototypes.h> 6 6 #include <linux/uaccess.h> 7 7 #include <asm/ftrace.h> 8 + #include <asm/mmu_context.h>
+2
arch/mips/mm/tlb-funcs.S
··· 12 12 * Copyright (C) 2012 Ralf Baechle <ralf@linux-mips.org> 13 13 */ 14 14 #include <asm/asm.h> 15 + #include <asm/export.h> 15 16 #include <asm/regdef.h> 16 17 17 18 #define FASTPATH_SIZE 128 ··· 23 22 .space 64 24 23 END(tlbmiss_handler_setup_pgd) 25 24 EXPORT(tlbmiss_handler_setup_pgd_end) 25 + EXPORT_SYMBOL_GPL(tlbmiss_handler_setup_pgd) 26 26 27 27 LEAF(handle_tlbm) 28 28 .space FASTPATH_SIZE * 4
-1
arch/mips/mm/tlbex.c
··· 1576 1576 extern u32 handle_tlbm[], handle_tlbm_end[]; 1577 1577 extern u32 tlbmiss_handler_setup_pgd_start[]; 1578 1578 extern u32 tlbmiss_handler_setup_pgd[]; 1579 - EXPORT_SYMBOL_GPL(tlbmiss_handler_setup_pgd); 1580 1579 extern u32 tlbmiss_handler_setup_pgd_end[]; 1581 1580 1582 1581 static void build_setup_pgd(void)