Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4385628imu; Sat, 19 Jan 2019 08:18:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN5tXQPmTV6ti29KZw0Xhz7EdZLOXFJGkwUuNsOiwt6oxddoZdHkIOcc6WfxFh6ubNc44dJK X-Received: by 2002:a63:7c41:: with SMTP id l1mr21689317pgn.45.1547914682983; Sat, 19 Jan 2019 08:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547914682; cv=none; d=google.com; s=arc-20160816; b=KqGWpd67gutfb73CXpDmiqxPbevcxs0ayyVCrkopXyn8RzpaXZHq+iHFFW7iSEyM4P afQepyqk+3v/tLuaxj7tHiDZs5+k9Ip9GRec3ZSUuA4Sn8IWnqGW83OYoH+0cKKZ6do6 +AQK5V5Ey5Ic6TJJnHu3gRI/6QUhcwd3BiOJ8UmAbdjCky1qvPWK5kAwjb7TE7z5+3W5 bRyNXE1iN/Sz9XFCxmH2NnM+yWKcX50G9HblM5BoxVXDYqBGeaA9IudRsLw+JxvlT3QB ZGBgQaLnKMpWSDtO472b/chTPGWpYwWUfGJGBHOMlGOQWYLBPIufuvZIR3rLkBw94yRI 2MGA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+Y8/KD/t1457g2rhN8kwOJyAZn1/qLZf2s1MYK2X4I0=; b=euGJo+OvqWpYobQbM1jdF9BFBME/+j1faI7d3qehnUI/OB6RELmDT0XdWnFugtDKJZ 511pBaC4UaClwfV/J51nmZtoITAEhCDp+bzQkYR/KlQseYZchPZNB5ZS2g8Ew4OD+6XV jma4ICDsZENN4Ptas0ehdj8fD+e2N5fZOP/Xrhw1jHtiy/aTIyKHWvSRNT+q/Aop9Cp+ /fyiRAg8sr51++7tCh0lyv6BtIWjQFTIS++jTwmMBZl9GUO4QqJHDfWOgGluQcymeell SQi9tNXwL9ueytPTgaWItd8XFyVojdeZdzIL6V44HWVCPWhyoE5L7CZ/Vx12QR9hjPo0 9deA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GyRB6oDG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si7359677pgg.397.2019.01.19.08.17.46; Sat, 19 Jan 2019 08:18:02 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=GyRB6oDG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728647AbfASQQk (ORCPT + 99 others); Sat, 19 Jan 2019 11:16:40 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41996 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbfASQQj (ORCPT ); Sat, 19 Jan 2019 11:16:39 -0500 Received: by mail-wr1-f67.google.com with SMTP id q18so18521141wrx.9; Sat, 19 Jan 2019 08:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+Y8/KD/t1457g2rhN8kwOJyAZn1/qLZf2s1MYK2X4I0=; b=GyRB6oDGZjtoszrokJ7iwaw5qLuEUUgxNoGE5d5qBGDbaRf1e1HVTuPN1l2c8Xj7mw tN8ORFAULB7Us4Tu1lQin1loWNBZ5Y6Iu/kwbPLLxN7Rkt9HdbU0SY93aPegzYQSfHPp PolCHHfq/Ah6LfGuthghXMCNG+t7hPEzRw4gxuMlGhYTEyNOLYu6lSw0H0XpfhC+6OyD w+EoKpp+MQV39Ud4KqE1Io+Md5uPqXsbimd7qVfv6a8rIUPBWxrpxRxD4ndTiS8I2aHU f0q/nxMzMLbjMtgfQnc137zc6PgVDx2bNqTSMm/tUy1uWkrTLpUVZeR3vyLbG/Ng30Ze L6MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+Y8/KD/t1457g2rhN8kwOJyAZn1/qLZf2s1MYK2X4I0=; b=UTtoQA9BT3I6n2e8Onch40d9N/RXZ8Y6FX4evW2GSSaF/+HCiSU1R/LTfFA90dlNy0 tqQDplzhuX2csCOWgEUtzxlsA2GrPoAvM9Xg/7wZLXzCpiVBmvwaXKFz/nHYhEfvu7pU 4jfo+9Nb3XKzYQz7MxegwnYZ3k7nFmwErDgjMKaPfZHBl6efqGDeGf4NtTFKHTkGLzae kpJXyoyEK00wuVhjSSKgesCGhMgvY5AMHEcTVUyaG8mdxQ+dKoAhS5K4Cr7Mdh/UR1a0 zovjbOiy5vubteakwR/5AJmzSigzfYUb6F14+bxoXhjxIpTVP9TWPVUeSCLpNoRYAH7m FSgQ== X-Gm-Message-State: AJcUukfrEN2mDb8tUxNngY6h9NYWEPmIHcHrebBFAkL9f0G9xjYXHuBJ bKr/gy+r/eojD01jGj6eDuA= X-Received: by 2002:a05:6000:1287:: with SMTP id f7mr21952937wrx.302.1547914598073; Sat, 19 Jan 2019 08:16:38 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:40eb:400:bcef:d6e3:7d06:ac3]) by smtp.gmail.com with ESMTPSA id v12sm86976151wmd.27.2019.01.19.08.16.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 08:16:37 -0800 (PST) From: Luc Van Oostenryck To: Zhang Rui Cc: Petr Mladek , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Luc Van Oostenryck Subject: [PATCH] thermal/intel_powerclamp: fix __percpu declaration of worker_data Date: Sat, 19 Jan 2019 17:15:23 +0100 Message-Id: <20190119161523.87999-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 7571f7c2e..c7cba20bd 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.20.0