linux-stable/arch/loongarch/kernel
Huacai Chen e0fba87c85 LoongArch: Fix section mismatch due to acpi_os_ioremap()
Now acpi_os_ioremap() is marked with __init because it calls memblock_
is_memory() which is also marked with __init in the !ARCH_KEEP_MEMBLOCK
case. However, acpi_os_ioremap() is called by ordinary functions such
as acpi_os_{read, write}_memory() and causes section mismatch warnings:

WARNING: modpost: vmlinux.o: section mismatch in reference: acpi_os_read_memory (section: .text) -> acpi_os_ioremap (section: .init.text)
WARNING: modpost: vmlinux.o: section mismatch in reference: acpi_os_write_memory (section: .text) -> acpi_os_ioremap (section: .init.text)

Fix these warnings by selecting ARCH_KEEP_MEMBLOCK unconditionally and
removing the __init modifier of acpi_os_ioremap(). This can also give a
chance to track "memory" and "reserved" memblocks after early boot.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2022-09-03 18:01:27 +08:00
..
.gitignore
access-helper.h LoongArch: Add exception/interrupt handling 2022-06-03 20:09:28 +08:00
acpi.c LoongArch: Fix section mismatch due to acpi_os_ioremap() 2022-09-03 18:01:27 +08:00
asm-offsets.c LoongArch changes for v5.20 2022-08-12 09:44:23 -07:00
cacheinfo.c LoongArch: Fix shared cache size calculation 2022-07-29 18:22:33 +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
elf.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
entry.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
env.c LoongArch: Remove unused variables 2022-07-29 18:22:32 +08:00
fpu.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
genex.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
head.S LoongArch: Jump to the link address before enable PG 2022-08-12 13:10:11 +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 irqchip: Add LoongArch CPU interrupt controller support 2022-07-20 12:09:21 +01:00
Makefile LoongArch: Add STACKTRACE support 2022-08-12 13:10:11 +08:00
mem.c
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: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-08-12 13:10:10 +08:00
process.c LoongArch: Add STACKTRACE support 2022-08-12 13:10:11 +08:00
ptrace.c LoongArch: Fix missing fcsr in ptrace's fpr_set 2022-07-29 18:22:33 +08:00
reset.c LoongArch: Cleanup reset routines with new API 2022-08-25 19:34:59 +08:00
setup.c LoongArch: Fix wrong "ROM Size" of boardinfo 2022-07-29 18:22:33 +08:00
signal.c LoongArch: Adjust arch_do_signal_or_restart() to adapt generic entry 2022-09-03 18:01:27 +08:00
smp.c LoongArch: Parse MADT to get multi-processor information 2022-08-12 13:10:11 +08:00
stacktrace.c LoongArch: Add USER_STACKTRACE support 2022-08-12 13:10:11 +08:00
switch.S LoongArch: Add STACKTRACE support 2022-08-12 13:10:11 +08:00
syscall.c LoongArch: Add system call support 2022-06-03 20:09:28 +08:00
time.c LoongArch: Fix unsigned comparison with less than zero 2022-08-12 13:10:10 +08:00
topology.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
traps.c LoongArch: Add prologue unwinder support 2022-08-12 13:10:11 +08:00
unwind_guess.c LoongArch: Add guess unwinder support 2022-08-12 13:10:11 +08:00
unwind_prologue.c LoongArch: Add prologue unwinder support 2022-08-12 13:10:11 +08:00
vdso.c LoongArch: Add vDSO syscall __vdso_getcpu() 2022-08-12 13:10:11 +08:00
vmlinux.lds.S LoongArch: Avoid orphan input sections 2022-09-03 18:01:27 +08:00