diff mbox

drivers/cpuidle/driver.c:81:1: sparse: symbol '__pcpu_scope_cpuidle_drivers' was not declared. Should it be static?

Message ID 50933568.RII3EAaoOWvGDiO6%fengguang.wu@intel.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Fengguang Wu Nov. 2, 2012, 2:52 a.m. UTC
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
head:   e709b61f9efd3b4ac899e5c4f7b881fdc694f343
commit: 4e6eebfe11765c746aef06f7c6aa0a6d3ff34a1c cpuidle: support multiple drivers
date:   5 hours ago


sparse warnings:

+ drivers/cpuidle/driver.c:81:1: sparse: symbol '__pcpu_scope_cpuidle_drivers' was not declared. Should it be static?

Please consider folding the attached diff :-)

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation
diff mbox

Patch

diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c
index 465e256..3af841f 100644
--- a/drivers/cpuidle/driver.c
+++ b/drivers/cpuidle/driver.c
@@ -78,7 +78,7 @@  static void __cpuidle_unregister_driver(struct cpuidle_driver *drv, int cpu)
 
 #ifdef CONFIG_CPU_IDLE_MULTIPLE_DRIVERS
 
-DEFINE_PER_CPU(struct cpuidle_driver *, cpuidle_drivers);
+static DEFINE_PER_CPU(struct cpuidle_driver *, cpuidle_drivers);
 
 static void __cpuidle_set_cpu_driver(struct cpuidle_driver *drv, int cpu)
 {