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

2020-08-26 Thread Matthew Wilcox
On Thu, Aug 27, 2020 at 10:31:33AM +0800, hejinyang wrote: > > > On 08/26/2020 09:01 PM, Matthew Wilcox wrote: > > 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 > > > +#ifd

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

2020-08-26 Thread hejinyang
On 08/26/2020 09:01 PM, Matthew Wilcox wrote: 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 +

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

2020-08-26 Thread Matthew Wilcox
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

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

2020-08-26 Thread Jinyang He
Machine as follows, [0.00] MIPS: machine is loongson,loongson64c-4core-ls7a If SMP if off, error as follows: 0x0: In file included from ./include/linux/gfp.h:9:0, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:18, fro