]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS: Loongson: Make cpumask_of_node() robust against NUMA_NO_NODE
authorJohn Garry <john.g.garry@oracle.com>
Wed, 7 Jan 2026 09:40:06 +0000 (09:40 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 30 Jan 2026 14:26:45 +0000 (15:26 +0100)
commitd55d3fe2d1470ac5b6e93efe7998b728013c9fc8
tree44c58cee22723e03f738f239a0df807429c1f961
parent63804fed149a6750ffd28610c5c1c98cce6bd377
MIPS: Loongson: Make cpumask_of_node() robust against NUMA_NO_NODE

The arch definition of cpumask_of_node() cannot handle NUMA_NO_NODE - which
is a valid index - so add a check for this.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-loongson64/topology.h