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
..
2022-08-12 13:10:11 +08:00
2022-06-03 20:09:28 +08:00
2022-09-03 18:01:27 +08:00
2022-08-25 19:34:59 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-07-29 18:22:32 +08:00
2022-07-29 18:22:32 +08:00
2022-07-29 18:22:32 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:11 +08:00
2022-06-25 18:06:07 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-08-25 19:34:59 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:29 +08:00
2022-08-12 13:10:11 +08:00
2022-06-03 20:09:28 +08:00
2022-06-28 20:13:09 +02:00
2022-07-29 18:22:32 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-07-07 17:41:01 +08:00
2022-06-03 20:09:28 +08:00
2022-07-29 18:22:32 +08:00
2022-06-08 11:00:40 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:11 +08:00
2022-08-25 19:34:59 +08:00
2022-06-03 20:09:28 +08:00
2022-08-18 17:37:22 +02:00
2022-07-29 18:22:32 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-07-29 18:22:32 +08:00
2022-06-03 20:09:28 +08:00
2022-07-29 18:22:32 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:29 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:29 +08:00
2022-08-25 19:34:59 +08:00
2022-08-12 13:10:11 +08:00
2022-08-25 19:34:59 +08:00
2022-06-03 20:09:28 +08:00
2022-07-17 17:14:43 -07:00
2022-07-17 17:14:38 -07:00
2022-08-25 19:34:59 +08:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:11 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-08 11:00:40 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:29 +08:00
2022-08-12 13:10:11 +08:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:11 +08:00
2022-06-03 20:09:28 +08:00
2022-07-29 18:22:32 +08:00
2022-06-03 20:09:28 +08:00
2022-06-08 11:00:40 +08:00
2022-07-21 10:50:13 -07:00
2022-06-03 20:09:29 +08:00
2022-06-03 20:09:29 +08:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:10 +08:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:11 +08:00
2022-08-12 13:10:11 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00