summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-09-06 20:18:55 +0200
committerTejun Heo <tj@kernel.org>2024-09-06 20:18:55 +0200
commit02e65e1c1282b8e38638de238ac7410846898348 (patch)
tree7f63257f6390240ffe1dd85c157bb98d6abd2115 /kernel
parentsched_ext: Temporarily work around pick_task_scx() being called without balan... (diff)
downloadlinux-02e65e1c1282b8e38638de238ac7410846898348.tar.xz
linux-02e65e1c1282b8e38638de238ac7410846898348.zip
sched_ext: Add missing static to scx_has_op[]
scx_has_op[] is only used inside ext.c but doesn't have static. Add it. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202409062337.m7qqI88I-lkp@intel.com/
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
index bd8cb37b4b2e..02cc45f7d81b 100644
--- a/kernel/sched/ext.c
+++ b/kernel/sched/ext.c
@@ -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);