From: Josh Poimboeuf Date: Wed, 12 Apr 2023 05:26:41 +0000 (-0700) Subject: sched/core: Make sched_dynamic_mutex static X-Git-Tag: v6.4-rc1~94^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b8e17813aeccc29c2f9f2e6e68997a6eac2d26d;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/oe-kbuild-all/202304062335.tNuUjgsl-lkp@intel.com/ --- diff --git a/kernel/sched/core.c b/kernel/sched/core.c index b9616f153946a..d861db8aa7ab4 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -8674,7 +8674,7 @@ int sched_dynamic_mode(const char *str) #error "Unsupported PREEMPT_DYNAMIC mechanism" #endif -DEFINE_MUTEX(sched_dynamic_mutex); +static DEFINE_MUTEX(sched_dynamic_mutex); static bool klp_override; static void __sched_dynamic_update(int mode)