Skip to contentSkip to conversation

pm/powerclamp: fix type check warnings

PATCH New Jacob Pan 1 participant 1 message Jan 18, 2013 Thermal

lore
Share & tools
lore

Jacob Pan

author
#0 lore raw

PATCH v7 3/3 pm/powerclamp: fix type check warnings

Sparse reports the following warning due to incorrect types.

drivers/thermal/intel_powerclamp.c:516:25: warning: incorrect type in initializer (different address spaces)
drivers/thermal/intel_powerclamp.c:516:25: expected void const [noderef] <asn:3>*__vpp_verify
drivers/thermal/intel_powerclamp.c:516:25: got struct task_struct [noderef] <asn:3>**<noident>
drivers/thermal/intel_powerclamp.c:516:25: warning: incorrect type in initializer (different address spaces)
drivers/thermal/intel_powerclamp.c:516:25: expected struct task_struct **p
drivers/thermal/intel_powerclamp.c:516:25: got struct task_struct [noderef] <asn:3>**<noident>

---
 drivers/thermal/intel_powerclamp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/intel_powerclamp.c +1 -1
index 81ebf87..33edf5d 100644
@@ -86,7 +86,7 @@ static unsigned int control_cpu; /* The cpu assigned to collect stat and update
 static bool clamping;
 
 
-static struct task_struct __percpu **powerclamp_thread;
+static struct task_struct * __percpu *powerclamp_thread;
 static struct thermal_cooling_device *cooling_dev;
 static unsigned long *cpu_clamping_mask;  /* bit map for tracking per cpu
 					   * clamping thread
Signature · 1 line
1.7.9.5