Skip to contentSkip to conversation

sched_ext: Add missing static to scx_has_op[]

PATCH New Tejun Heo 1 participant 1 message Sep 6, 2024 Scheduler

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 sched_ext: Add missing static to scx_has_op[]

From 02e65e1c1282b8e38638de238ac7410846898348 Mon Sep 17 00:00:00 2001
From: Tejun Heo <[email protected]>
Date: Fri, 6 Sep 2024 08:18:55 -1000

scx_has_op[] is only used inside ext.c but doesn't have static. Add it.

---
Applied to sched_ext/for-6.12.

Thanks.

 kernel/sched/ext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/ext.c +1 -1
index bd8cb37b4b2e..02cc45f7d81b 100644
@@ -865,7 +865,7 @@ static DEFINE_STATIC_KEY_FALSE(scx_ops_enq_exiting);
 static DEFINE_STATIC_KEY_FALSE(scx_ops_cpu_preempt);
 static DEFINE_STATIC_KEY_FALSE(scx_builtin_idle_enabled);
 
-struct static_key_false scx_has_op[SCX_OPI_END] =
+static struct static_key_false scx_has_op[SCX_OPI_END] =
 	{ [0 ... SCX_OPI_END-1] = STATIC_KEY_FALSE_INIT };
 
 static atomic_t scx_exit_kind = ATOMIC_INIT(SCX_EXIT_DONE);
Signature · 1 line
2.46.0