sched/fair: Fix comma operator misuse in NUMA fault accounting
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.
Signed-off-by Zhan Xusheng <[email protected]>
--- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
@@ -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
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.
Signed-off-by Zhan Xusheng <[email protected]>
Signed-off-by Peter Zijlstra (Intel) <[email protected]>
--- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
@@ -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);