1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 08:35:19 -05:00
linux/arch/mips/loongson64
Tiezhu Yang 08472f6ebd MIPS: Loongson64: Fix section mismatch warning
prom_init_numa_memory() is annotated __init and not used by any module,
thus don't export it.

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

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

This is build on Linux 5.19-rc4.

Fixes: 6fbde6b492 ("MIPS: Loongson64: Move files to the top-level directory")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2022-07-05 11:20:52 +02:00
..
boardinfo.c
cop2-ex.c
cpucfg-emul.c
dma.c swiotlb: make the swiotlb_init interface more useful 2022-04-18 07:21:11 +02:00
env.c MIPS: Loongson64: Remove a "set but not used" variable 2021-05-27 12:35:19 +02:00
hpet.c
init.c Merge branch 'akpm' (patches from Andrew) 2021-11-06 14:08:17 -07:00
Kconfig
Makefile
numa.c MIPS: Loongson64: Fix section mismatch warning 2022-07-05 11:20:52 +02:00
Platform MIPS: Loongson{2ef,64}: Wrap -mno-branch-likely with cc-option 2022-02-07 18:30:12 +01:00
pm.c
reset.c
setup.c MIPS: Remove redundant definitions of device_tree_init() 2022-03-14 15:09:02 +01:00
smp.c MIPS: loongson64: Drop call to irq_cpu_offline() 2021-10-26 11:18:33 +01:00
smp.h
time.c
vbios_quirk.c PCI/sysfs: Find shadow ROM before static attribute initialization 2022-01-26 10:41:21 -06:00