mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-04-03 12:05:13 +02:00
[ Upstream commitbadf752b5e] 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:a5e3aaa654("microblaze: Add xmb_manager_register function") Reported-by: Jeff Johnson <quic_jjohnson@quicinc.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/e322dbbbde0feef83f44304ea13249d365d1dc5f.1718799090.git.michal.simek@amd.com Signed-off-by: Sasha Levin <sashal@kernel.org>
59 lines
1.3 KiB
C
59 lines
1.3 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
|
|
* Copyright (C) 2008-2009 PetaLogix
|
|
*/
|
|
|
|
#include <linux/export.h>
|
|
#include <linux/string.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/in6.h>
|
|
#include <linux/syscalls.h>
|
|
|
|
#include <asm/checksum.h>
|
|
#include <asm/cacheflush.h>
|
|
#include <linux/io.h>
|
|
#include <asm/page.h>
|
|
#include <linux/ftrace.h>
|
|
#include <linux/uaccess.h>
|
|
#include <asm/xilinx_mb_manager.h>
|
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
|
extern void _mcount(void);
|
|
EXPORT_SYMBOL(_mcount);
|
|
#endif
|
|
|
|
/*
|
|
* Assembly functions that may be used (directly or indirectly) by modules
|
|
*/
|
|
EXPORT_SYMBOL(__copy_tofrom_user);
|
|
|
|
#ifdef CONFIG_OPT_LIB_ASM
|
|
EXPORT_SYMBOL(memcpy);
|
|
EXPORT_SYMBOL(memmove);
|
|
#endif
|
|
|
|
EXPORT_SYMBOL(empty_zero_page);
|
|
|
|
EXPORT_SYMBOL(mbc);
|
|
|
|
extern void __divsi3(void);
|
|
EXPORT_SYMBOL(__divsi3);
|
|
extern void __modsi3(void);
|
|
EXPORT_SYMBOL(__modsi3);
|
|
extern void __mulsi3(void);
|
|
EXPORT_SYMBOL(__mulsi3);
|
|
extern void __udivsi3(void);
|
|
EXPORT_SYMBOL(__udivsi3);
|
|
extern void __umodsi3(void);
|
|
EXPORT_SYMBOL(__umodsi3);
|
|
|
|
#ifdef CONFIG_MB_MANAGER
|
|
extern void xmb_manager_register(uintptr_t phys_baseaddr, u32 cr_val,
|
|
void (*callback)(void *data),
|
|
void *priv, void (*reset_callback)(void *data));
|
|
EXPORT_SYMBOL(xmb_manager_register);
|
|
extern asmlinkage void xmb_inject_err(void);
|
|
EXPORT_SYMBOL(xmb_inject_err);
|
|
#endif
|