linux-stable/arch/loongarch/mm
Yupeng Li e18b2e3310 LoongArch: Fix arch_remove_memory() undefined build error
[ Upstream commit 1a470ce4e9 ]

The kernel build error when unslected CONFIG_MEMORY_HOTREMOVE because
arch_remove_memory() is needed by mm/memory_hotplug.c but undefined.

Some build error messages like:

 LD      vmlinux.o
 MODPOST vmlinux.symvers
 MODINFO modules.builtin.modinfo
 GEN     modules.builtin
 LD      .tmp_vmlinux.kallsyms1
loongarch64-linux-gnu-ld: mm/memory_hotplug.o: in function `.L242':
memory_hotplug.c:(.ref.text+0x930): undefined reference to `arch_remove_memory'
make: *** [Makefile:1169:vmlinux] 错误 1

Removed CONFIG_MEMORY_HOTREMOVE requirement and rearrange the file refer
to the definitions of other platform architectures.

Signed-off-by: Yupeng Li <liyupeng@zbhlos.com>
Signed-off-by: Caicai <caizp2008@163.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-20 12:43:49 +02:00
..
Makefile
cache.c
extable.c
fault.c
hugetlbpage.c
init.c LoongArch: Fix arch_remove_memory() undefined build error 2022-09-20 12:43:49 +02:00
ioremap.c
maccess.c
mmap.c
page.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
pgtable.c
tlb.c LoongArch: Fix EENTRY/MERRENTRY setting in setup_tlb_handler() 2022-06-25 18:05:58 +08:00
tlbex.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00