xtensa: add asm-prototypes.h
Max Filippov
maintainerPATCH 1/1 xtensa: add asm-prototypes.h
Move assembly source prototypes from xtensa_ksyms.c to asm/asm-prototypes.h and enable HAVE_ASM_MODVERSIONS for xtensa.
Signed-off-by Max Filippov <[email protected]>
--- arch/xtensa/Kconfig | 1 + arch/xtensa/include/asm/asm-prototypes.h | 22 ++++++++++++++++++++++ arch/xtensa/kernel/xtensa_ksyms.c | 16 +--------------- 3 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 arch/xtensa/include/asm/asm-prototypes.h
arch/xtensa/Kconfig +1 -0
@@ -35,6 +35,7 @@ config XTENSA select HAVE_ARCH_KCSAN select HAVE_ARCH_SECCOMP_FILTER select HAVE_ARCH_TRACEHOOK + select HAVE_ASM_MODVERSIONS select HAVE_CONTEXT_TRACKING_USER select HAVE_DEBUG_KMEMLEAK select HAVE_DMA_CONTIGUOUS
arch/xtensa/include/asm/asm-prototypes.h new file +22 -0
@@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_PROTOTYPES_H +#define __ASM_PROTOTYPES_H + +#include <asm-generic/asm-prototypes.h> + +/* +* gcc internal math functions +*/ +long long __ashrdi3 (long long ,int ); +long long __ashldi3 (long long ,int ); +long long __bswapdi2 (long long ); +int __bswapsi2 (int ); +long long __lshrdi3 (long long ,int ); +int __divsi3 (int ,int ); +int __modsi3 (int ,int ); +int __mulsi3 (int ,int ); +unsigned int __udivsi3 (unsigned int ,unsigned int ); +unsigned int __umodsi3 (unsigned int ,unsigned int ); +unsigned long long __umulsidi3 (unsigned int ,unsigned int ); + +#endif /* __ASM_PROTOTYPES_H */
arch/xtensa/kernel/xtensa_ksyms.c +1 -15
@@ -20,6 +20,7 @@#include <linux/in6.h> #include <linux/uaccess.h> +#include <asm/asm-prototypes.h> #include <asm/cacheflush.h> #include <asm/checksum.h> #include <asm/dma.h>
@@ -51,21 +52,6 @@ EXPORT_SYMBOL(copy_page);EXPORT_SYMBOL (empty_zero_page); -/* -* gcc internal math functions -*/ -extern long long __ashrdi3 (long long ,int ); -extern long long __ashldi3 (long long ,int ); -extern long long __bswapdi2 (long long ); -extern int __bswapsi2 (int ); -extern long long __lshrdi3 (long long ,int ); -extern int __divsi3 (int ,int ); -extern int __modsi3 (int ,int ); -extern int __mulsi3 (int ,int ); -extern unsigned int __udivsi3 (unsigned int ,unsigned int ); -extern unsigned int __umodsi3 (unsigned int ,unsigned int ); -extern unsigned long long __umulsidi3 (unsigned int ,unsigned int ); -EXPORT_SYMBOL (__ashldi3);EXPORT_SYMBOL (__ashrdi3);EXPORT_SYMBOL (__bswapdi2);
Signature · 1 line
2.30.2