mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched_ext: Fix preprocessor #endif statement annotations
@ 2026-02-27 17:30 Darshit Shah
  0 siblings, 0 replies; only message in thread
From: Darshit Shah @ 2026-02-27 17:30 UTC (permalink / raw)
  To: Darshit Shah, Ingo Molnar, Peter Zijlstra, Juri Lelli,
	Vincent Guittot, Dietmar Eggemann, Steven Rostedt, Ben Segall,
	Mel Gorman, Valentin Schneider, Tejun Heo, linux-kernel

Previous patch (ddceadce63) replaced the conditional
CONFIG_CFS_BANDWIDTH with CONFIG_GROUP_SCHED_BANDWIDTH. However, the
corresponding #endif statements were not appropriately changed.
This commit fixes that.

Fixes: ddceadce63d9 ("sched_ext: Add support for cgroup bandwidth control interface")

Signed-off-by: Darshit Shah <darnshah@amazon.de>
---
 kernel/sched/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index bfd280ec0f97..a65380d9f699 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -10184,7 +10184,7 @@ static ssize_t cpu_max_write(struct kernfs_open_file *of,
 		ret = tg_set_bandwidth(tg, period_us, quota_us, burst_us);
 	return ret ?: nbytes;
 }
-#endif /* CONFIG_CFS_BANDWIDTH */
+#endif /* CONFIG_GROUP_SCHED_BANDWIDTH */
 
 static struct cftype cpu_files[] = {
 #ifdef CONFIG_GROUP_SCHED_WEIGHT
@@ -10220,7 +10220,7 @@ static struct cftype cpu_files[] = {
 		.read_u64 = cpu_burst_read_u64,
 		.write_u64 = cpu_burst_write_u64,
 	},
-#endif /* CONFIG_CFS_BANDWIDTH */
+#endif /* CONFIG_GROUP_SCHED_BANDWIDTH */
 #ifdef CONFIG_UCLAMP_TASK_GROUP
 	{
 		.name = "uclamp.min",
-- 
2.47.3




Amazon Web Services Development Center Germany GmbH
Tamara-Danz-Str. 13
10243 Berlin
Geschaeftsfuehrung: Christof Hellmis, Andreas Stieger
Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-27 17:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-27 17:30 [PATCH] sched_ext: Fix preprocessor #endif statement annotations Darshit Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®