diff options
author | Yupeng Li <liyupeng@zbhlos.com> | 2022-08-31 13:40:17 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2022-09-03 18:01:27 +0800 |
commit | 1a470ce4e9106cc4c3c0edfb2e213dcbb7224dc4 (patch) | |
tree | be0d2552f8b17410c2ece82c51d5ebae13ba74e3 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | e0fba87c854347007fb9fc873e890b686cc61302 (diff) |
LoongArch: Fix arch_remove_memory() undefined build error
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>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions