[PATCH 3/3] sched/rt: Fix inverted #endif comment for the RT_GROUP_SCHED block
From: Zhan Xusheng
Date: Tue Aug 04 2026 - 08:57:03 EST
The #endif that closes the "Ensure that the real time constraints are
schedulable" block is annotated "/* !CONFIG_RT_GROUP_SCHED */", but it
closes the positive "#ifdef CONFIG_RT_GROUP_SCHED" -- there is no #else in
the block -- so the comment is inverted. Drop the negation to match the
block it closes and the positive-block convention used elsewhere in the
file. Comment only, no functional change.
Signed-off-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>
---
kernel/sched/rt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index ac4cdebf8679..fde2f1be4fe2 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -2844,7 +2844,7 @@ int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk)
return 1;
}
-#endif /* !CONFIG_RT_GROUP_SCHED */
+#endif /* CONFIG_RT_GROUP_SCHED */
#ifdef CONFIG_SYSCTL
static int sched_rt_global_validate(void)
--
2.43.0