summaryrefslogtreecommitdiff
path: root/kernel/sched/syscalls.c
diff options
context:
space:
mode:
authorMichal Koutný <mkoutny@suse.com>2025-03-10 18:04:33 +0100
committerPeter Zijlstra <peterz@infradead.org>2025-04-08 20:55:52 +0200
commit433bce5dadb4ec3d5eda99c5125926c045b79005 (patch)
tree3b305c22dd69a9d933bb70c6618b9a401f1fdcd4 /kernel/sched/syscalls.c
parentf2d650618bc721760199ae0133c73ec32c63817e (diff)
downloadlinux-next-433bce5dadb4ec3d5eda99c5125926c045b79005.tar.gz
linux-next-433bce5dadb4ec3d5eda99c5125926c045b79005.zip
sched: Convert CONFIG_RT_GROUP_SCHED macros to code conditions
Convert the blocks guarded by macros to regular code so that the RT group code gets more compile validation. Reasoning is in Documentation/process/coding-style.rst 21) Conditional Compilation. With that, no functional change is expected. Signed-off-by: Michal Koutný <mkoutny@suse.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20250310170442.504716-2-mkoutny@suse.com
Diffstat (limited to 'kernel/sched/syscalls.c')
-rw-r--r--kernel/sched/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/syscalls.c b/kernel/sched/syscalls.c
index c326de1344fb..2bf528116fad 100644
--- a/kernel/sched/syscalls.c
+++ b/kernel/sched/syscalls.c
@@ -640,7 +640,7 @@ change:
retval = -EPERM;
goto unlock;
}
-#endif
+#endif /* CONFIG_RT_GROUP_SCHED */
#ifdef CONFIG_SMP
if (dl_bandwidth_enabled() && dl_policy(policy) &&
!(attr->sched_flags & SCHED_FLAG_SUGOV)) {