OpenCloudOS-Kernel/arch/loongarch/kernel
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
..
.gitignore
Makefile LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
access-helper.h LoongArch: Add exception/interrupt handling 2022-06-03 20:09:28 +08:00
acpi.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
asm-offsets.c LoongArch: Remove obsolete mentions of vcsr 2022-07-07 17:41:01 +08:00
cacheinfo.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
cpu-probe.c LoongArch: Fix wrong fpu version 2022-06-25 18:05:59 +08:00
dma.c LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
efi.c LoongArch: Add boot and setup routines 2022-06-03 20:09:28 +08:00
elf.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
entry.S LoongArch: Add system call support 2022-06-03 20:09:28 +08:00
env.c LoongArch: Add boot and setup routines 2022-06-03 20:09:28 +08:00
fpu.S LoongArch: Remove obsolete mentions of vcsr 2022-07-07 17:41:01 +08:00
genex.S LoongArch: Add exception/interrupt handling 2022-06-03 20:09:28 +08:00
head.S LoongArch: Fix the _stext symbol address 2022-06-25 18:05:58 +08:00
idle.c LoongArch: Add process management 2022-06-03 20:09:28 +08:00
inst.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
io.c LoongArch: Add misc common routines 2022-06-03 20:09:28 +08:00
irq.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
mem.c LoongArch: Add boot and setup routines 2022-06-03 20:09:28 +08:00
module-sections.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
module.c LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
numa.c LoongArch: Fix section mismatch warning 2022-07-07 17:41:01 +08:00
proc.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
process.c LoongArch: Fix copy_thread() build errors 2022-06-08 11:00:40 +08:00
ptrace.c LoongArch: Add process management 2022-06-03 20:09:28 +08:00
reset.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
setup.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
signal.c LoongArch: Add signal handling support 2022-06-03 20:09:28 +08:00
smp.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
switch.S LoongArch: Add process management 2022-06-03 20:09:28 +08:00
syscall.c LoongArch: Add system call support 2022-06-03 20:09:28 +08:00
time.c LoongArch: Add VDSO and VSYSCALL support 2022-06-03 20:09:28 +08:00
topology.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
traps.c LoongArch: Make compute_return_era() return void 2022-06-25 18:06:07 +08:00
vdso.c LoongArch: Add VDSO and VSYSCALL support 2022-06-03 20:09:28 +08:00
vmlinux.lds.S LoongArch: Fix the _stext symbol address 2022-06-25 18:05:58 +08:00