| From: zhong jiang <zhongjiang@huawei.com> |
| Date: Fri, 3 Aug 2018 20:37:32 +0800 |
| Subject: sched/topology: Make local variables static |
| |
| commit ace8031099f91480799b5929b4cccf2dcacc5136 upstream. |
| |
| 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 <zhongjiang@huawei.com> |
| Cc: Linus Torvalds <torvalds@linux-foundation.org> |
| Cc: Peter Zijlstra <peterz@infradead.org> |
| Cc: Thomas Gleixner <tglx@linutronix.de> |
| Link: http://lkml.kernel.org/r/1533299852-26941-1-git-send-email-zhongjiang@huawei.com |
| Signed-off-by: Ingo Molnar <mingo@kernel.org> |
| [bwh: Backported to 3.16: adjust filename, context] |
| Signed-off-by: Ben Hutchings <ben@decadent.org.uk> |
| --- |
| --- a/kernel/sched/core.c |
| +++ b/kernel/sched/core.c |
| @@ -5286,7 +5286,7 @@ early_initcall(migration_init); |
| #ifdef CONFIG_SMP |
| |
| static cpumask_var_t sched_domains_tmpmask; /* sched_domains_mutex */ |
| -cpumask_var_t sched_domains_tmpmask2; |
| +static cpumask_var_t sched_domains_tmpmask2; |
| |
| #ifdef CONFIG_SCHED_DEBUG |
| |