[RFC PATCH] sched/fair: __pcpu_scope_nohz_balance_mask can be static
From: kernel test robot
Date: Wed Jul 14 2021 - 20:02:27 EST
kernel/sched/fair.c:5697:1: warning: symbol '__pcpu_scope_nohz_balance_mask' was not declared. Should it be static?
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 497208a1afb88..c6a515d469dd8 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5694,7 +5694,7 @@ DEFINE_PER_CPU(cpumask_var_t, select_idle_mask);
#ifdef CONFIG_NO_HZ_COMMON
-DEFINE_PER_CPU(cpumask_var_t, nohz_balance_mask);
+static DEFINE_PER_CPU(cpumask_var_t, nohz_balance_mask);
static struct {
cpumask_var_t idle_cpus_mask; /* CPUs in NOHZ idle */