From patchwork Fri Jan 18 09:30:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Pan X-Patchwork-Id: 2003961 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 11C963FD86 for ; Fri, 18 Jan 2013 17:30:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751780Ab3ARRa2 (ORCPT ); Fri, 18 Jan 2013 12:30:28 -0500 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 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 18 Jan 2013 09:29:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,493,1355126400"; d="scan'208";a="273867452" Received: from jacob-desktop.jf.intel.com ([10.7.198.62]) by orsmga002.jf.intel.com with ESMTP; 18 Jan 2013 09:30:27 -0800 From: Jacob Pan To: Linux PM , Zhang Rui Cc: Rafael Wysocki , 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> X-Mailer: git-send-email 1.7.9.5 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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