]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix build error for loongson64 and sgi-ip27
authorFeiyang Chen <chris.chenfeiyang@gmail.com>
Sat, 19 Mar 2022 09:40:02 +0000 (17:40 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 24 Mar 2022 08:45:15 +0000 (09:45 +0100)
commitc5e39ffe56adb03bfeb5ab0bb1a2b17a8c1ad985
treee460b5e67d234662989f2ab468d4df79266be1b0
parent20faf885be5edd82a1edcc822cefa7721513d099
MIPS: Fix build error for loongson64 and sgi-ip27

Select HAVE_ARCH_NODEDATA_EXTENSION for loongson64 to fix build error
when CONFIG_NUMA=y:

mips64el-unknown-linux-gnu-ld: mm/page_alloc.o: in function `free_area_init':
(.init.text+0x1714): undefined reference to `node_data'
mips64el-unknown-linux-gnu-ld: (.init.text+0x1730): undefined reference to `node_data'

Also, select HAVE_ARCH_NODEDATA_EXTENSION for sgi-ip27 to fix build error:

mips64el-unknown-linux-gnu-ld: mm/page_alloc.o: in function `free_area_init':
page_alloc.c:(.init.text+0x1ba8): undefined reference to `node_data'
mips64el-unknown-linux-gnu-ld: page_alloc.c:(.init.text+0x1bcc): undefined reference to `node_data'
mips64el-unknown-linux-gnu-ld: page_alloc.c:(.init.text+0x1be4): undefined reference to `node_data'
mips64el-unknown-linux-gnu-ld: page_alloc.c:(.init.text+0x1bf4): undefined reference to `node_data'

Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig
arch/mips/loongson64/numa.c
arch/mips/sgi-ip27/ip27-memory.c