Skip to content

Commit 9b8e178

Browse files
jpoimboePeter Zijlstra
authored andcommitted
sched/core: Make sched_dynamic_mutex static
The sched_dynamic_mutex is only used within the file. Make it static. Fixes: e3ff7c6 ("livepatch,sched: Add livepatch task switching to cond_resched()") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/oe-kbuild-all/202304062335.tNuUjgsl-lkp@intel.com/
1 parent d82caa2 commit 9b8e178

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8674,7 +8674,7 @@ int sched_dynamic_mode(const char *str)
86748674
#error "Unsupported PREEMPT_DYNAMIC mechanism"
86758675
#endif
86768676

8677-
DEFINE_MUTEX(sched_dynamic_mutex);
8677+
static DEFINE_MUTEX(sched_dynamic_mutex);
86788678
static bool klp_override;
86798679

86808680
static void __sched_dynamic_update(int mode)

0 commit comments

Comments
 (0)