Skip to content

Commit 1062fc4

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: Loongson64: Select SMP in Kconfig to avoid build error
In the current code, CONFIG_SMP can be set as N by user on the Loongson platform, then there exists the following build error under !CONFIG_SMP: CC arch/mips/kernel/asm-offsets.s In file included from ./include/linux/gfp.h:9:0, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:18, from ./include/linux/fs.h:15, from ./include/linux/compat.h:17, from arch/mips/kernel/asm-offsets.c:12: ./include/linux/topology.h: In function 'numa_node_id': ./include/linux/topology.h:119:2: error: implicit declaration of function 'cpu_logical_map' [-Werror=implicit-function-declaration] return cpu_to_node(raw_smp_processor_id()); ^ cc1: some warnings being treated as errors scripts/Makefile.build:117: recipe for target 'arch/mips/kernel/asm-offsets.s' failed make[1]: *** [arch/mips/kernel/asm-offsets.s] Error 1 Select SMP in Kconfig to avoid the above build error and then remove CONFIG_SMP=y in loongson3_defconfig. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 90761ce commit 1062fc4

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

arch/mips/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ config MACH_LOONGSON64
488488
select SYS_SUPPORTS_ZBOOT
489489
select ZONE_DMA32
490490
select NUMA
491+
select SMP
491492
select COMMON_CLK
492493
select USE_OF
493494
select BUILTIN_DTB

arch/mips/configs/loongson3_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ CONFIG_EMBEDDED=y
3030
CONFIG_PERF_EVENTS=y
3131
CONFIG_MACH_LOONGSON64=y
3232
CONFIG_CPU_HAS_MSA=y
33-
CONFIG_SMP=y
3433
CONFIG_NR_CPUS=16
3534
CONFIG_HZ_256=y
3635
CONFIG_KEXEC=y

0 commit comments

Comments
 (0)