Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp885887yba; Thu, 18 Apr 2019 11:11:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiT3p80pgm8s6F3v+dQzFk3UGuHr5R5LBeGNsHj8Zfob39cVkeiW+RenPlq84b1X6L6PH3 X-Received: by 2002:a17:902:442:: with SMTP id 60mr97932632ple.107.1555611119669; Thu, 18 Apr 2019 11:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611119; cv=none; d=google.com; s=arc-20160816; b=FBzEUTTuivSz0oAQZuJHwBEmd+YyIpFKEmDgyjHg5OOBD3TFLmZmKvxeu0MWdaC5fC IAlD3Kel2+xWS2lIfY1/Ck8gMFGlv+DA5Z/XnCm1LQsH6BGWmyNMsJCryeitQsjeCo4P GGEG69zX9dDaRw5+eWyUW3fac4aIYHITG3JrzpDbjzpBKBGjYsXtUTcuaaFjDXxbr4Cq i4w4l2eZJe4sw1ZZLeMWfKjcHcv9ax42wzHSnFc2+V7hh8+bIIpS6nVMBr23JPRhq2JV o+75DnBQlwlK1csBfhIf6UaiCLf24Yux6q/9pzT6ncuxJ/wR6uW+qF8z3mMOs7DR4oaC 0BNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mwPca+R2tLaILoOnDXmC8qyjfhJMIZ/BqcSCb227QLs=; b=EZT1aqTeqWV0ExPrr7+khlLoM+u0mSS/m41FJcU7t9ks2r4Ezzqy6jxArY48fY88C/ yB/ffwncIIJnOZ0KQeEaA5JBxExHquhWGvpGzWCF5f0pcWsHIoWNiIIGKBmGmPjYsyk1 +4u7D15OHY+ys7vq/tRDGWN9ygk86Q8PGSkfdU4PnhzKDmDkZW3PKwYRIddl+GVcKozf +lZbo6PgcKqUjt1pVaHNyRB76I++ycT8owk8dVNlQoP3BcLtusFOlELVpVenN+pRpdtc vGJShWOPIR9SfSToMsBNSWJPqaveR4VJcWP+3Ik+ICu/YGF1yey3LqVu/LHxXYGbTJsF tSww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ycrvoSP5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si3024654pfk.277.2019.04.18.11.11.44; Thu, 18 Apr 2019 11:11:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ycrvoSP5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404057AbfDRSKE (ORCPT + 99 others); Thu, 18 Apr 2019 14:10:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:41696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404055AbfDRSKB (ORCPT ); Thu, 18 Apr 2019 14:10:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1CC120675; Thu, 18 Apr 2019 18:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555611000; bh=8obVZ6zgTm4HnTVKk2fQksn2w/Y16Nk5VNPqioju6eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ycrvoSP53HEJ7MjTnIFpW29bQ0eevzo2c/xw98F2rY+DlUlrjkhN+SaJ1MrwsaV9o /ohWrtehitm7PxocdXLtxGK5WpgOJ5aJA2Bv8EKEi3sfHD8QJ1cvPFcw+RZgX6tpQ1 SEERgh2/67Fv3pZNkKkF391XIwcqQhJWDB+Tvjfg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luc Van Oostenryck , Petr Mladek , Zhang Rui , Sasha Levin Subject: [PATCH 5.0 20/93] thermal/intel_powerclamp: fix __percpu declaration of worker_data Date: Thu, 18 Apr 2019 19:56:58 +0200 Message-Id: <20190418160438.824963069@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160436.781762249@linuxfoundation.org> References: <20190418160436.781762249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit aa36e3616532f82a920b5ebf4e059fbafae63d88 ] This variable is declared as: static struct powerclamp_worker_data * __percpu worker_data; In other words, a percpu pointer to struct ... But this variable not used like so but as a pointer to a percpu struct powerclamp_worker_data. So fix the declaration as: static struct powerclamp_worker_data __percpu *worker_data; This also quiets Sparse's warnings from __verify_pcpu_ptr(), like: 494:49: warning: incorrect type in initializer (different address spaces) 494:49: expected void const [noderef] *__vpp_verify 494:49: got struct powerclamp_worker_data * Signed-off-by: Luc Van Oostenryck Reviewed-by: Petr Mladek Signed-off-by: Zhang Rui Signed-off-by: Sasha Levin --- drivers/thermal/intel/intel_powerclamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c index 7571f7c2e7c9..b12ecd436e23 100644 --- a/drivers/thermal/intel/intel_powerclamp.c +++ b/drivers/thermal/intel/intel_powerclamp.c @@ -101,7 +101,7 @@ struct powerclamp_worker_data { bool clamping; }; -static struct powerclamp_worker_data * __percpu worker_data; +static struct powerclamp_worker_data __percpu *worker_data; static struct thermal_cooling_device *cooling_dev; static unsigned long *cpu_clamping_mask; /* bit map for tracking per cpu * clamping kthread worker -- 2.19.1