FAILED: Patch "LoongArch: Make cpumask_of_node() robust against NUMA_NO_NODE" failed to apply to 6.12-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 94b0c831eda778ae9e4f2164a8b3de485d8977bb Mon Sep 17 00:00:00 2001
From: John Garry <[email protected]>
Date: Tue, 10 Feb 2026 19:31:12 +0800
Subject: [PATCH] LoongArch: 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.
--- arch/loongarch/include/asm/topology.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/loongarch/include/asm/topology.h +1 -1
@@ -12,7 +12,7 @@extern cpumask_t cpus_on_node[]; -#define cpumask_of_node (node) (&cpus_on_node[node]) +#define cpumask_of_node (node) ((node) == NUMA_NO_NODE ? cpu_all_mask : &cpus_on_node[node])struct pci_bus ;extern int pcibus_to_node (struct pci_bus *);
Signature · 1 line
2.51.0
Huacai Chen
maintainerHi, Sasha,
Quoted 5 lines · Sasha Levin
The patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
I'm very confused because it can be applied and already here:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.12
Huacai
Quoted 41 lines
Thanks,
Sasha------------------ original commit in Linus's tree ------------------
From
94b0c831eda778ae9e4f2164a8b3de485d8977bbMon Sep 17 00:00:00 2001
From: John Garry <[email protected]>
Date: Tue, 10 Feb 2026 19:31:12 +0800
Subject: [PATCH] LoongArch: Makecpumask_of_node()robust againstNUMA_NO_NODEThe arch definition of
cpumask_of_node()cannot handleNUMA_NO_NODE- which is a valid index - so add a check for this.Signed-off-by John Garry <[email protected]>Signed-off-by Huacai Chen <[email protected]>--- arch/loongarch/include/asm/topology.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/loongarch/include/asm/topology.h +1
-2@@ -12,7 +12,7 @@extern cpumask_t cpus_on_node[]; -#define cpumask_of_node (node) (&cpus_on_node[node]) +#define cpumask_of_node (node) ((node) == NUMA_NO_NODE ? cpu_all_mask : &cpus_on_node[node])struct pci_bus ;extern int pcibus_to_node (struct pci_bus *); --2.51.0