The initialization of init_task.se.slice incorrectly ends with a comma
(`,`), which may lead to unexpected behavior.
This patch fixes the issue by replacing the comma with a semicolon (`;`).
---
sched/core: Fix missing semicolon in init_task.se.slice initialization
The initialization of init_task.se.slice incorrectly ends with a comma
(`,`), which may lead to unexpected behavior.
This patch fixes the issue by replacing the comma with a semicolon (`;`).
Signed-off-by: Liya Huang <1425075683@qq.com>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c81cf642dba055544704faf4492bd0e053f5ae42..e393aa82399b1f7ef3b4b6a3b3fb3e624bcd031e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -8685,7 +8685,7 @@ void __init sched_init(void)
}
set_load_weight(&init_task, false);
- init_task.se.slice = sysctl_sched_base_slice,
+ init_task.se.slice = sysctl_sched_base_slice;
/*
* The boot idle thread does lazy MMU switching as well:
---
base-commit: b4432656b36e5cc1d50a1f2dc15357543add530e
change-id: 20250505-sched_core-cc737e2b6c31
Best regards,
--
Liya Huang <1425075683@qq.com>