projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d82caa2
)
sched/core: Make sched_dynamic_mutex static
author
Josh Poimboeuf
<jpoimboe@kernel.org>
Wed, 12 Apr 2023 05:26:41 +0000
(22:26 -0700)
committer
Peter Zijlstra
<peterz@infradead.org>
Wed, 12 Apr 2023 14:46:31 +0000
(16:46 +0200)
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/
kernel/sched/core.c
patch
|
blob
|
history
diff --git
a/kernel/sched/core.c
b/kernel/sched/core.c
index b9616f153946a9ba8cb6a501f111c3b3716164ab..d861db8aa7ab43f767fd92f5ae72e514ea62f207 100644
(file)
--- 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)