* [UPDATE v7 3/3] pm/powerclamp: fix type check warnings
@ 2013-01-18 9:30 Jacob Pan
0 siblings, 0 replies; only message in thread
From: Jacob Pan @ 2013-01-18 9:30 UTC (permalink / raw)
To: Linux PM, Zhang Rui; +Cc: Rafael Wysocki, Jacob Pan
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>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
---
drivers/thermal/intel_powerclamp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel_powerclamp.c
index 81ebf87..33edf5d 100644
--- a/drivers/thermal/intel_powerclamp.c
+++ b/drivers/thermal/intel_powerclamp.c
@@ -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
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-18 17:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18 9:30 [UPDATE v7 3/3] pm/powerclamp: fix type check warnings Jacob Pan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).