Skip to content

Commit badf752

Browse files
committed
microblaze: Export xmb_manager functions
When TMR_MANAGER is enabled as module there is a need to export functions which are present in architecture code. It has been found by running: make W=1 C=1 allmodconfig sed -i -e 's/WERROR=y/WERROR=n/g' .config make C=1 W=1 which errors out like this: ERROR: modpost: "xmb_manager_register" [drivers/misc/xilinx_tmr_manager.ko] undefined! ERROR: modpost: "xmb_inject_err" [drivers/misc/xilinx_tmr_inject.ko] undefined! Fixes: a5e3aaa ("microblaze: Add xmb_manager_register function") Reported-by: Jeff Johnson <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/e322dbbbde0feef83f44304ea13249d365d1dc5f.1718799090.git.michal.simek@amd.com
1 parent 9852d85 commit badf752

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/microblaze/kernel/microblaze_ksyms.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <asm/page.h>
1717
#include <linux/ftrace.h>
1818
#include <linux/uaccess.h>
19+
#include <asm/xilinx_mb_manager.h>
1920

2021
#ifdef CONFIG_FUNCTION_TRACER
2122
extern void _mcount(void);
@@ -46,3 +47,12 @@ extern void __udivsi3(void);
4647
EXPORT_SYMBOL(__udivsi3);
4748
extern void __umodsi3(void);
4849
EXPORT_SYMBOL(__umodsi3);
50+
51+
#ifdef CONFIG_MB_MANAGER
52+
extern void xmb_manager_register(uintptr_t phys_baseaddr, u32 cr_val,
53+
void (*callback)(void *data),
54+
void *priv, void (*reset_callback)(void *data));
55+
EXPORT_SYMBOL(xmb_manager_register);
56+
extern asmlinkage void xmb_inject_err(void);
57+
EXPORT_SYMBOL(xmb_inject_err);
58+
#endif

0 commit comments

Comments
 (0)