Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/core: Make sched_dynamic_mutex static

The sched_dynamic_mutex is only used within the file. Make it static.

Fixes: e3ff7c609f39 ("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/

authored by

Josh Poimboeuf and committed by
Peter Zijlstra
9b8e1781 d82caa27

+1 -1
+1 -1
kernel/sched/core.c
··· 8674 8674 #error "Unsupported PREEMPT_DYNAMIC mechanism" 8675 8675 #endif 8676 8676 8677 - DEFINE_MUTEX(sched_dynamic_mutex); 8677 + static DEFINE_MUTEX(sched_dynamic_mutex); 8678 8678 static bool klp_override; 8679 8679 8680 8680 static void __sched_dynamic_update(int mode)