Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b29fea36 authored by Paul Burton's avatar Paul Burton
Browse files

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

Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
parent 22f20a11
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -5,3 +5,4 @@
#include <asm-generic/asm-prototypes.h>
#include <asm-generic/asm-prototypes.h>
#include <linux/uaccess.h>
#include <linux/uaccess.h>
#include <asm/ftrace.h>
#include <asm/ftrace.h>
#include <asm/mmu_context.h>
+2 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,7 @@
 * Copyright (C) 2012  Ralf Baechle <ralf@linux-mips.org>
 * Copyright (C) 2012  Ralf Baechle <ralf@linux-mips.org>
 */
 */
#include <asm/asm.h>
#include <asm/asm.h>
#include <asm/export.h>
#include <asm/regdef.h>
#include <asm/regdef.h>


#define FASTPATH_SIZE	128
#define FASTPATH_SIZE	128
@@ -22,6 +23,7 @@ LEAF(tlbmiss_handler_setup_pgd)
	.space	64
	.space	64
END(tlbmiss_handler_setup_pgd)
END(tlbmiss_handler_setup_pgd)
EXPORT(tlbmiss_handler_setup_pgd_end)
EXPORT(tlbmiss_handler_setup_pgd_end)
EXPORT_SYMBOL_GPL(tlbmiss_handler_setup_pgd)


LEAF(handle_tlbm)
LEAF(handle_tlbm)
	.space		FASTPATH_SIZE * 4
	.space		FASTPATH_SIZE * 4
+0 −1
Original line number Original line Diff line number Diff line
@@ -1576,7 +1576,6 @@ extern u32 handle_tlbs[], handle_tlbs_end[];
extern u32 handle_tlbm[], handle_tlbm_end[];
extern u32 handle_tlbm[], handle_tlbm_end[];
extern u32 tlbmiss_handler_setup_pgd_start[];
extern u32 tlbmiss_handler_setup_pgd_start[];
extern u32 tlbmiss_handler_setup_pgd[];
extern u32 tlbmiss_handler_setup_pgd[];
EXPORT_SYMBOL_GPL(tlbmiss_handler_setup_pgd);
extern u32 tlbmiss_handler_setup_pgd_end[];
extern u32 tlbmiss_handler_setup_pgd_end[];


static void build_setup_pgd(void)
static void build_setup_pgd(void)