sched/topology: Make some local variable static
PATCH 1/1 sched/topology: Make some local variable static
Fix the following warning.
kernel/sched/topology.c:10:15: warning: symbol 'sched_domains_tmpmask' was not declared. Should it be static? kernel/sched/topology.c:11:15: warning: symbol 'sched_domains_tmpmask2' was not declared. Should it be static?
Signed-off-by zhong jiang <[email protected]>
--- kernel/sched/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/topology.c +2 -2
@@ -7,8 +7,8 @@DEFINE_MUTEX (sched_domains_mutex);/* Protected by sched_domains_mutex: */ -cpumask_var_t sched_domains_tmpmask; -cpumask_var_t sched_domains_tmpmask2; +static cpumask_var_t sched_domains_tmpmask; +static cpumask_var_t sched_domains_tmpmask2;#ifdef CONFIG_SCHED_DEBUG
Signature · 1 line
1.7.12.4
tip-bot for zhong jiang
merge bot[tip:sched/core] sched/topology: Make local variables static
sched/topology: Make local variables static
Commit-ID: ace8031099f91480799b5929b4cccf2dcacc5136 Gitweb: https://git.kernel.org/tip/ace8031099f91480799b5929b4cccf2dcacc5136 Author: zhong jiang <[email protected]> AuthorDate: Fri, 3 Aug 2018 20:37:32 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 10 Sep 2018 15:10:57 +0200
sched/topology: Make local variables static
Fix the following warnings:
kernel/sched/topology.c:10:15: warning: symbol 'sched_domains_tmpmask' was not declared. Should it be static? kernel/sched/topology.c:11:15: warning: symbol 'sched_domains_tmpmask2' was not declared. Should it be static?
Signed-off-by zhong jiang <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/sched/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/topology.c +2 -2
@@ -7,8 +7,8 @@DEFINE_MUTEX (sched_domains_mutex);/* Protected by sched_domains_mutex: */ -cpumask_var_t sched_domains_tmpmask; -cpumask_var_t sched_domains_tmpmask2; +static cpumask_var_t sched_domains_tmpmask; +static cpumask_var_t sched_domains_tmpmask2;#ifdef CONFIG_SCHED_DEBUG