Skip to content

Commit 02e65e1

Browse files
committed
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 <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
1 parent da330f5 commit 02e65e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ static DEFINE_STATIC_KEY_FALSE(scx_ops_enq_exiting);
865865
static DEFINE_STATIC_KEY_FALSE(scx_ops_cpu_preempt);
866866
static DEFINE_STATIC_KEY_FALSE(scx_builtin_idle_enabled);
867867

868-
struct static_key_false scx_has_op[SCX_OPI_END] =
868+
static struct static_key_false scx_has_op[SCX_OPI_END] =
869869
{ [0 ... SCX_OPI_END-1] = STATIC_KEY_FALSE_INIT };
870870

871871
static atomic_t scx_exit_kind = ATOMIC_INIT(SCX_EXIT_DONE);

0 commit comments

Comments
 (0)