pm/powerclamp: fix type check warnings
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_verifydrivers/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 **pdrivers/thermal/intel_powerclamp.c:516:25: got struct task_struct [noderef] <asn:3>**<noident>
Signed-off-by Jacob Pan <[email protected]>
--- drivers/thermal/intel_powerclamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/intel_powerclamp.c +1 -1
@@ -86,7 +86,7 @@ static unsigned int control_cpu; /* The cpu assigned to collect stat and updatestatic 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