Skip to contentSkip to conversation

sched/fair: Fix comma operator misuse in NUMA fault accounting

PATCH RESEND Applied Zhan Xusheng 2 participants 2 messages Mar 9 – Mar 12 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 sched/fair: Fix comma operator misuse in NUMA fault accounting

Replace the comma operator with separate statements when assigning NUMA fault statistics. This improves readability and follows kernel coding style.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index bf948db905ed..1c6c9c9e4696 100644
@@ -14025,7 +14025,7 @@ void show_numa_stats(struct task_struct *p, struct seq_file *m)
 			tpf = p->numa_faults[task_faults_idx(NUMA_MEM, node, 1)];
 		}
 		if (ng) {
-			gsf = ng->faults[task_faults_idx(NUMA_MEM, node, 0)],
+			gsf = ng->faults[task_faults_idx(NUMA_MEM, node, 0)];
 			gpf = ng->faults[task_faults_idx(NUMA_MEM, node, 1)];
 		}
 		print_numa_stats(m, node, tsf, tpf, gsf, gpf);
Signature · 1 line
2.43.0
merge bot Applied
#1 lore raw
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     8d16e3c6f844823812f872df5ef1d3d2ed11b956
Gitweb:        https://git.kernel.org/tip/8d16e3c6f844823812f872df5ef1d3d2ed11b956
Author:        Zhan Xusheng <[email protected]>
AuthorDate:    Mon, 09 Mar 2026 10:42:47 +08:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Thu, 12 Mar 2026 07:47:37 +01:00

sched/fair: Fix comma operator misuse in NUMA fault accounting

Replace the comma operator with separate statements when assigning NUMA fault statistics. This improves readability and follows kernel coding style.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index d57c02e..c1e5c82 100644
@@ -14226,7 +14226,7 @@ void show_numa_stats(struct task_struct *p, struct seq_file *m)
 			tpf = p->numa_faults[task_faults_idx(NUMA_MEM, node, 1)];
 		}
 		if (ng) {
-			gsf = ng->faults[task_faults_idx(NUMA_MEM, node, 0)],
+			gsf = ng->faults[task_faults_idx(NUMA_MEM, node, 0)];
 			gpf = ng->faults[task_faults_idx(NUMA_MEM, node, 1)];
 		}
 		print_numa_stats(m, node, tsf, tpf, gsf, gpf);