]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
sched/topology: Make local variables static
authorzhong jiang <zhongjiang@huawei.com>
Fri, 3 Aug 2018 12:37:32 +0000 (20:37 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 10 Sep 2018 13:10:57 +0000 (15:10 +0200)
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>
kernel/sched/topology.c

index 7ffad0d3a4ebb9b0dcd9d14b912f50e46c6347e7..9d74371e4aad86a436c549045be08c2a1ed30853 100644 (file)
@@ -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