Re: [PATCH] MIPS: Loongson: Fix complie errors without CONFIG_SMP

From: Matthew Wilcox
Date: Wed Aug 26 2020 - 09:01:55 EST


On Wed, Aug 26, 2020 at 08:53:27PM +0800, Jinyang He wrote:
> +++ b/arch/mips/include/asm/mach-loongson64/topology.h
> @@ -4,7 +4,11 @@
>
> #ifdef CONFIG_NUMA
>
> +#ifdef CONFIG_SMP
> #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
> +#else
> +#define cpu_to_node(cpu) 0
> +#endif

Are you saying you've enabled NUMA without enabling SMP? Does that make
sense?