From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Pan Subject: [UPDATE v7 3/3] pm/powerclamp: fix type check warnings Date: Fri, 18 Jan 2013 01:30:05 -0800 Message-ID: <1358501405-3718-1-git-send-email-jacob.jun.pan@linux.intel.com> Return-path: Received: from mga09.intel.com ([134.134.136.24]:30879 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411Ab3ARRa2 (ORCPT ); Fri, 18 Jan 2013 12:30:28 -0500 Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org 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] *__vpp_verify drivers/thermal/intel_powerclamp.c:516:25: got struct task_struct [noderef] ** 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] ** Signed-off-by: Jacob Pan --- 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