[PATCH v2 3/3] MIPS: traps: export a missing symbols to be able to use it from driver code
Yanteng Si
siyanteng01 at gmail.com
Wed Oct 27 21:04:54 PDT 2021
From: Wang Haojun <wanghaojun at loongson.cn>
Since commit 707a4cdf86e5 ("bus: brcmstb_gisb: Allow building as module")
the brcmstb_gisb bus driver is built as a module but modpost complains once
these drivers become modules.
ERROR: modpost: "board_be_handler" [drivers/bus/brcmstb_gisb.ko] undefined!
Let's just export it.
Signed-off-by: Wang Haojun <wanghaojun at loongson.cn>
Signed-off-by: Yanteng Si <siyanteng at loongson.cn>
---
arch/mips/kernel/traps.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 6f07362de5ce..409bcc755b89 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -104,6 +104,7 @@ extern void tlb_do_page_fault_0(void);
void (*board_be_init)(void);
int (*board_be_handler)(struct pt_regs *regs, int is_fixup);
+EXPORT_SYMBOL_GPL(board_be_handler);
void (*board_nmi_handler_setup)(void);
void (*board_ejtag_handler_setup)(void);
void (*board_bind_eic_interrupt)(int irq, int regset);
--
2.27.0
More information about the linux-arm-kernel
mailing list