]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Fix section mismatch warning
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 27 Jun 2022 06:57:35 +0000 (14:57 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 7 Jul 2022 09:41:01 +0000 (17:41 +0800)
commit538023d735dbbb47a5e90b3a7ea4b4d2803ac264
tree7ffb07e1f87b5f77bfb5727f6fe07fa9fb4bb5da
parenta19950607c75d7dc3ea8cae47884ad8ec03cb89b
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: 7fcf23733292 ("LoongArch: Add Non-Uniform Memory Access (NUMA) support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/numa.c