linux/arch/loongarch
Tiezhu Yang f0fbe652e8 LoongArch: Fix section mismatch warning
init_numa_memory() is annotated __init and not used by any module,
thus don't export it.

Remove not needed EXPORT_SYMBOL for init_numa_memory() to fix the
following section mismatch warning:

  MODPOST vmlinux.symvers
WARNING: modpost: vmlinux.o(___ksymtab+init_numa_memory+0x0): Section mismatch in reference
from the variable __ksymtab_init_numa_memory to the function .init.text:init_numa_memory()
The symbol init_numa_memory is exported and annotated __init
Fix this by removing the __init annotation of init_numa_memory or drop the export.

This is build on Linux 5.19-rc4.

Fixes: d4b6f1562a ("LoongArch: Add Non-Uniform Memory Access (NUMA) support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2022-07-07 17:41:01 +08:00
..
boot
configs LoongArch: Add Loongson-3 default config file 2022-06-03 20:09:29 +08:00
include LoongArch: Fix build errors for tinyconfig 2022-07-07 17:41:01 +08:00
kernel LoongArch: Fix section mismatch warning 2022-07-07 17:41:01 +08:00
lib LoongArch: Add some library functions 2022-06-03 20:09:28 +08:00
mm LoongArch: Fix EENTRY/MERRENTRY setting in setup_tlb_handler() 2022-06-25 18:05:58 +08:00
pci
vdso LoongArch: Fix build errors for tinyconfig 2022-07-07 17:41:01 +08:00
Kbuild
Kconfig LoongArch: Drop these obsolete selects in Kconfig 2022-07-07 17:41:01 +08:00
Kconfig.debug
Makefile LoongArch: Add Loongson-3 default config file 2022-06-03 20:09:29 +08:00