From patchwork Wed Jul 15 08:26:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235558 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412262ilg; Wed, 15 Jul 2020 01:26:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAj3ZYdYnbLzoZF69tUGPR22xZy4WLNIuAcUoj66gYeVJZz5Qq7IT05LVAlGLhy2c0Dn3i X-Received: by 2002:a17:906:2296:: with SMTP id p22mr7999992eja.510.1594801604281; Wed, 15 Jul 2020 01:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801604; cv=none; d=google.com; s=arc-20160816; b=Tb/OASgmvgbgJa1fGLJe4eKEM7RWlLIzkIYXEWQeqIxySFk3Sc70p34IdN/f+wP9Vv tTbWOJ2aR5/77MXTF/HO4LEzDwj6bDgtSr4CNKTLGlxXjdYar62ROwjrmFxJjJIezfEv WE4sq9KfqYAO6txfHD5Ykf78qKgzxWwloK4Xrki+gISuM9hGwfyk4FM6lNd79Ms3bdDP Er6B9aIDP32NRx65Ys2vdlQGtSj7wtJbXz2ZCHl98Ziv39+Ii+1tDoWyrNgdze6Tx66d ammHrD65LXLuF3igQdoF6HSlhD0xGer5+pOzCinHkh18162nk7/+YbhELtZgMHHjyHQy 71yg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1LJ0wihOBVHPIGemJGX58TPrv3uF5xWaa7cKhOONWPg=; b=kroeWXgwtD6tdc982NGOKBQGiBV0V81j1jI3IpEjoNZJNdbyTr7hRFvor768fzbarI gsYzy+GT8N0MJqbfNwIMyP4Fuy+Mbi8f/O6iB+kV3Bp+tz7sx4bYPfBgDH0TAmcl3AR5 j7dYwgiIQ/pp7qLJAGJ1rd7JVLIgfhiFKO0ZTpe+gymz/AFo4re1F0TtBZXW5ZldhjcU W9Jr/iscehpUnuLonqrR0sA4B/AWhCqtp3GgDn99iAZrCrlFHDN8Gq2Wy0X9E90R9sMh GydL1nn/TY8EgIaUDbeWTzkYPe1fLODPCdL7LDCpQAeDW3RdIeNa03DxA+5912p9H95J SLFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ljxiYm+v; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si838608ejs.462.2020.07.15.01.26.44; Wed, 15 Jul 2020 01:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ljxiYm+v; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729860AbgGOI0m (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729857AbgGOI0l (ORCPT ); Wed, 15 Jul 2020 04:26:41 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1A7EC061755 for ; Wed, 15 Jul 2020 01:26:40 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id s10so1418888wrw.12 for ; Wed, 15 Jul 2020 01:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1LJ0wihOBVHPIGemJGX58TPrv3uF5xWaa7cKhOONWPg=; b=ljxiYm+vN9KkU8J2YlA1xo2jW+OJL7zYylIepuzU7NoryNA4YAXH7bYPteN60yXtEn hfSFIN/cOX7tEUohsIXs0F/GgCd3GKKtuthbueKyvrI1U/lxQEF4VvR8A2tjQyvXbR2R VeSPnORSvMphuW5BfwzDDB5TIOmffT1Kk0oGb8oZbmBbVIvPtfWh6RXPfPZnfdrGylZs 9b2iHT6/rWMNnkB9bbJbfe35FsmMQ5d1t09jupstSL7KFJx1lmivT8f3uPRgmmxso48w ATJ17hH8EV/Bpj6CFqYI2jgsmsxIlQy3Swwqkz4YM03QiYDyBspOyHnFL7VuYHDX83cp f2pA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=1LJ0wihOBVHPIGemJGX58TPrv3uF5xWaa7cKhOONWPg=; b=hWrRPnWnOVNfGMOb1UkEtWmTDjKF4WmISrFGR/xpjxmlw7Td9thTpqO2qWwiwNYLl2 CFATYhJMJhqR0eKZqheGyY7cBEc5ndmrDGBQOM+NWlie9hTCy00Znw+xLRsAqdpEO9Sn XSkJqpP/0j7vV0YKO9hTngX4UH/z62FHM2Y2c/JB9mC99udiYNucMH7xL9K88J94OB4h I9BSLQ5jCUWYk/FbgbV4bZjfAYsYFGtRoss8qJImurtpWSdeNuMt4FGOwQIhbg6vSgRJ mejfGP+XhEJ+03GisTkR6FQPwE+X6QQlBtCCVkh4CzziG+Mq521YsQ6U2ZZkM5B6XRPn 3aSw== X-Gm-Message-State: AOAM5317CJgVEoNfDhU2dnC8dgvdlgk+MywCBMY8CrLO4vZLdfHnVNw4 ak/UaphoKwlObRtnNDk+MsOxvg== X-Received: by 2002:a5d:698e:: with SMTP id g14mr10754265wru.301.1594801599673; Wed, 15 Jul 2020 01:26:39 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:38 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Dominik Brodowski Subject: [PATCH v2 01/13] cpufreq: freq_table: Demote obvious misuse of kerneldoc to standard comment blocks Date: Wed, 15 Jul 2020 09:26:22 +0100 Message-Id: <20200715082634.3024816-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org No attempt has been made to document any of the demoted functions here. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/freq_table.c:229: warning: Function parameter or member 'policy' not described in 'show_available_freqs' drivers/cpufreq/freq_table.c:229: warning: Function parameter or member 'buf' not described in 'show_available_freqs' drivers/cpufreq/freq_table.c:229: warning: Function parameter or member 'show_boost' not described in 'show_available_freqs' drivers/cpufreq/freq_table.c:269: warning: Function parameter or member 'policy' not described in 'scaling_available_frequencies_show' drivers/cpufreq/freq_table.c:269: warning: Function parameter or member 'buf' not described in 'scaling_available_frequencies_show' drivers/cpufreq/freq_table.c:281: warning: Function parameter or member 'policy' not described in 'scaling_boost_frequencies_show' drivers/cpufreq/freq_table.c:281: warning: Function parameter or member 'buf' not described in 'scaling_boost_frequencies_show' Cc: Dominik Brodowski Signed-off-by: Lee Jones Acked-by: Viresh Kumar --- drivers/cpufreq/freq_table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index e117b0059123e..f839dc9852c08 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c @@ -221,7 +221,7 @@ int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, } EXPORT_SYMBOL_GPL(cpufreq_frequency_table_get_index); -/** +/* * show_available_freqs - show available frequencies for the specified CPU */ static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf, @@ -260,7 +260,7 @@ static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf, struct freq_attr cpufreq_freq_attr_##_name##_freqs = \ __ATTR_RO(_name##_frequencies) -/** +/* * show_scaling_available_frequencies - show available normal frequencies for * the specified CPU */ @@ -272,7 +272,7 @@ static ssize_t scaling_available_frequencies_show(struct cpufreq_policy *policy, cpufreq_attr_available_freq(scaling_available); EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_available_freqs); -/** +/* * show_available_boost_freqs - show available boost frequencies for * the specified CPU */ From patchwork Wed Jul 15 08:26:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235570 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412785ilg; Wed, 15 Jul 2020 01:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1JBoi4Y7lgwTpzcIy7k7bPpyIywmKoEaQwhmv6KTh76yYgdMdjvJtiCz+Gf2KsLtM/c6P X-Received: by 2002:a17:907:2058:: with SMTP id pg24mr8685878ejb.79.1594801646410; Wed, 15 Jul 2020 01:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801646; cv=none; d=google.com; s=arc-20160816; b=tOwhBn32PXAiMuvZfyRNcQjXlhhT857jtd65aHLdMRGGEeg4g6pgqdLXPiU0piUXVs Z7GEkL1/8KXWOMeN5oO7M8rWsWhuqWum52hF96KvDBdsQsRpWyDVgk8WvHM5TtInx/w4 6fyaqXwl1tcYxZaEBaLEoGAuJVgFX4S/DH+wWcwywNP6VxgrBD//KAsO58DiCBEwfYSi CHkK9hIBBQgu771qwX6jlHDn+UmuedN3jwe0A3EBpoBBwGhDHY3oROJcBNW+1j94Lacl qtkjJzMy2znmxY2M7yoGW6hrkPRwTgGb2ZFNpeNnOG8SqMnW7b4pfGmM5g5/GC8jEjva bycQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ihjHslCIw8qoMVK4GXrRB+3Lj/xZDniOVXUYfLOZNm8=; b=K0Ky/zg2RoC/ZLB16f9yeRG65cpLxbGJRQ/XGoslzZbYn2y3+Yd2t3F5D9aPI9eNr2 ni+RgaVqoPGNW0JsUv20pW4WiESI1ngQUkC/s94nBeemooA2Jf09P7SCrNoY+mTdHwHG 4FQMXpBypyxQWOv6rEpFsOtqQV81noSwT18UPkOfAFrdDL5u7G9d8q0A+GK23ofKyL0B siN+j+Uyl4PDYi8qRV8QkFdqWmrKaz8bqanmkPxRA7CkM8z7mgRIQPoJESfTsHmZP7Fw F9lwROAlD+E/w9GScU8sfMi0ydI+Glwdgt+GneaUpbgcpOOPLFLSVX6KzkYKIGEt3QSp bvTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oy8I177G; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si847373edv.230.2020.07.15.01.27.26; Wed, 15 Jul 2020 01:27:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oy8I177G; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729871AbgGOI0o (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729862AbgGOI0m (ORCPT ); Wed, 15 Jul 2020 04:26:42 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DBDDC061755 for ; Wed, 15 Jul 2020 01:26:42 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f18so1527586wrs.0 for ; Wed, 15 Jul 2020 01:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ihjHslCIw8qoMVK4GXrRB+3Lj/xZDniOVXUYfLOZNm8=; b=oy8I177G6dJEDpBrdxhbNXr6eWAuiaucCN6BvpWmTV5GJxmYxNYnN1lFkHFXt8M7oJ R6ooMcsuYbuh02++yZ3V1ni9aBPhi6hpoSKyNhGDRWo43fdxVCsgOoZffKPobP3zkTiv k1X64hU5n+M4+g/wkseLyImHKdQSD8Z7ZBfTlmvaEPUafxpQW4DWnIjgpTLrNIN91DCC ZwfFLnc41wUqXeat4AEy47ZQi+r5c1s1Au00TOolQbNhWPB64J/oC4wYg+3FLbODPSIt p+D3lrRh9pLo17RdsiHs72QqQDn9fD3W3v0kzW7WPerA5H4IZ4650ZhJvO/Sm5tklwvq Aw1w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ihjHslCIw8qoMVK4GXrRB+3Lj/xZDniOVXUYfLOZNm8=; b=nBY6BqbGmFeqSrSTFRyR9faOpRSEnfSq94zNhq9cm9ig3b3dNV+Uch1PGbpSIk26Tl 7DTehkCLzavJKZtNyJdcgjTBJCrFwwNnx+JJtS1xqmkGqIce2GVUnla4oXg63cqvdQpO 2SLRdwasjN9dys/d43vAmmEwIe5pOyccpHzmtgTuDoDSpQro9AoXCRCT9HAndubDgIC7 T0mgVu4AyxYwsFsT5TwfbRQBnQPQauTWX7ydnjw8dJh6E5yluJImxzp6GK7i6imwDuxu +Ir6Tckvytcam8HjSrbW6OTaYO/KZxSvJESG43q8NbtTcwVGL2CPLm+Xgtrjfm4NDRQd Bozw== X-Gm-Message-State: AOAM530GiQbIdHCp1EExDN6e4XSBJUkLNypP0+pksU5oqh0lfZM3E2wX 070B7RaAE0ozl6On7tcYyn/ntg== X-Received: by 2002:a5d:69c5:: with SMTP id s5mr10062532wrw.197.1594801600826; Wed, 15 Jul 2020 01:26:40 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:40 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Dominik Brodowski , Ashok Raj , Jacob Shin Subject: [PATCH v2 02/13] cpufreq: cpufreq: Demote lots of function headers unworthy of kerneldoc status Date: Wed, 15 Jul 2020 09:26:23 +0100 Message-Id: <20200715082634.3024816-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Also provide missing function parameter description for 'cpu' and 'policy'. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/cpufreq.c:60: warning: cannot understand function prototype: 'struct cpufreq_driver *cpufreq_driver; ' drivers/cpufreq/cpufreq.c:90: warning: Function parameter or member 'cpufreq_policy_notifier_list' not described in 'BLOCKING_NOTIFIER_HEAD' drivers/cpufreq/cpufreq.c:312: warning: Function parameter or member 'val' not described in 'adjust_jiffies' drivers/cpufreq/cpufreq.c:312: warning: Function parameter or member 'ci' not described in 'adjust_jiffies' drivers/cpufreq/cpufreq.c:538: warning: Function parameter or member 'policy' not described in 'cpufreq_driver_resolve_freq' drivers/cpufreq/cpufreq.c:686: warning: Function parameter or member 'file_name' not described in 'show_one' drivers/cpufreq/cpufreq.c:686: warning: Function parameter or member 'object' not described in 'show_one' drivers/cpufreq/cpufreq.c:731: warning: Function parameter or member 'file_name' not described in 'store_one' drivers/cpufreq/cpufreq.c:731: warning: Function parameter or member 'object' not described in 'store_one' drivers/cpufreq/cpufreq.c:741: warning: Function parameter or member 'policy' not described in 'show_cpuinfo_cur_freq' drivers/cpufreq/cpufreq.c:741: warning: Function parameter or member 'buf' not described in 'show_cpuinfo_cur_freq' drivers/cpufreq/cpufreq.c:754: warning: Function parameter or member 'policy' not described in 'show_scaling_governor' drivers/cpufreq/cpufreq.c:754: warning: Function parameter or member 'buf' not described in 'show_scaling_governor' drivers/cpufreq/cpufreq.c:770: warning: Function parameter or member 'policy' not described in 'store_scaling_governor' drivers/cpufreq/cpufreq.c:770: warning: Function parameter or member 'buf' not described in 'store_scaling_governor' drivers/cpufreq/cpufreq.c:770: warning: Function parameter or member 'count' not described in 'store_scaling_governor' drivers/cpufreq/cpufreq.c:806: warning: Function parameter or member 'policy' not described in 'show_scaling_driver' drivers/cpufreq/cpufreq.c:806: warning: Function parameter or member 'buf' not described in 'show_scaling_driver' drivers/cpufreq/cpufreq.c:815: warning: Function parameter or member 'policy' not described in 'show_scaling_available_governors' drivers/cpufreq/cpufreq.c:815: warning: Function parameter or member 'buf' not described in 'show_scaling_available_governors' drivers/cpufreq/cpufreq.c:859: warning: Function parameter or member 'policy' not described in 'show_related_cpus' drivers/cpufreq/cpufreq.c:859: warning: Function parameter or member 'buf' not described in 'show_related_cpus' drivers/cpufreq/cpufreq.c:867: warning: Function parameter or member 'policy' not described in 'show_affected_cpus' drivers/cpufreq/cpufreq.c:867: warning: Function parameter or member 'buf' not described in 'show_affected_cpus' drivers/cpufreq/cpufreq.c:901: warning: Function parameter or member 'policy' not described in 'show_bios_limit' drivers/cpufreq/cpufreq.c:901: warning: Function parameter or member 'buf' not described in 'show_bios_limit' drivers/cpufreq/cpufreq.c:1625: warning: Function parameter or member 'dev' not described in 'cpufreq_remove_dev' drivers/cpufreq/cpufreq.c:1625: warning: Function parameter or member 'sif' not described in 'cpufreq_remove_dev' drivers/cpufreq/cpufreq.c:2380: warning: Function parameter or member 'cpu' not described in 'cpufreq_get_policy' drivers/cpufreq/cpufreq.c:2771: warning: Function parameter or member 'driver' not described in 'cpufreq_unregister_driver' Cc: Dominik Brodowski Cc: Ashok Raj Cc: Jacob Shin Signed-off-by: Lee Jones --- drivers/cpufreq/cpufreq.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 036f4cc42ede2..17c1c3becd925 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -52,7 +52,7 @@ static LIST_HEAD(cpufreq_governor_list); static char default_governor[CPUFREQ_NAME_LEN]; -/** +/* * The "cpufreq driver" - the arch- or hardware-dependent low * level driver of CPUFreq support, and its spinlock. This lock * also protects the cpufreq_cpu_data array. @@ -80,7 +80,7 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy, struct cpufreq_governor *new_gov, unsigned int new_pol); -/** +/* * Two notifier lists: the "policy" list is involved in the * validation process for a new CPU frequency policy; the * "transition" list for kernel code that needs to handle @@ -300,7 +300,7 @@ struct cpufreq_policy *cpufreq_cpu_acquire(unsigned int cpu) * EXTERNALLY AFFECTING FREQUENCY CHANGES * *********************************************************************/ -/** +/* * adjust_jiffies - adjust the system "loops_per_jiffy" * * This function alters the system "loops_per_jiffy" for the clock @@ -526,6 +526,7 @@ EXPORT_SYMBOL_GPL(cpufreq_disable_fast_switch); /** * cpufreq_driver_resolve_freq - Map a target frequency to a driver-supported * one. + * @policy: associated policy to interrogate * @target_freq: target frequency to resolve. * * The target to driver frequency mapping is cached in the policy. @@ -670,7 +671,7 @@ static struct cpufreq_governor *cpufreq_parse_governor(char *str_governor) return get_governor(str_governor); } -/** +/* * cpufreq_per_cpu_attr_read() / show_##file_name() - * print out cpufreq information * @@ -712,7 +713,7 @@ static ssize_t show_scaling_cur_freq(struct cpufreq_policy *policy, char *buf) return ret; } -/** +/* * cpufreq_per_cpu_attr_write() / store_##file_name() - sysfs write access */ #define store_one(file_name, object) \ @@ -733,7 +734,7 @@ static ssize_t store_##file_name \ store_one(scaling_min_freq, min); store_one(scaling_max_freq, max); -/** +/* * show_cpuinfo_cur_freq - current CPU frequency as detected by hardware */ static ssize_t show_cpuinfo_cur_freq(struct cpufreq_policy *policy, @@ -747,7 +748,7 @@ static ssize_t show_cpuinfo_cur_freq(struct cpufreq_policy *policy, return sprintf(buf, "\n"); } -/** +/* * show_scaling_governor - show the current policy for the specified CPU */ static ssize_t show_scaling_governor(struct cpufreq_policy *policy, char *buf) @@ -762,7 +763,7 @@ static ssize_t show_scaling_governor(struct cpufreq_policy *policy, char *buf) return -EINVAL; } -/** +/* * store_scaling_governor - store policy for the specified CPU */ static ssize_t store_scaling_governor(struct cpufreq_policy *policy, @@ -799,7 +800,7 @@ static ssize_t store_scaling_governor(struct cpufreq_policy *policy, return ret ? ret : count; } -/** +/* * show_scaling_driver - show the cpufreq driver currently loaded */ static ssize_t show_scaling_driver(struct cpufreq_policy *policy, char *buf) @@ -807,7 +808,7 @@ static ssize_t show_scaling_driver(struct cpufreq_policy *policy, char *buf) return scnprintf(buf, CPUFREQ_NAME_PLEN, "%s\n", cpufreq_driver->name); } -/** +/* * show_scaling_available_governors - show the available CPUfreq governors */ static ssize_t show_scaling_available_governors(struct cpufreq_policy *policy, @@ -851,7 +852,7 @@ ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf) } EXPORT_SYMBOL_GPL(cpufreq_show_cpus); -/** +/* * show_related_cpus - show the CPUs affected by each transition even if * hw coordination is in use */ @@ -860,7 +861,7 @@ static ssize_t show_related_cpus(struct cpufreq_policy *policy, char *buf) return cpufreq_show_cpus(policy->related_cpus, buf); } -/** +/* * show_affected_cpus - show the CPUs affected by each transition */ static ssize_t show_affected_cpus(struct cpufreq_policy *policy, char *buf) @@ -894,7 +895,7 @@ static ssize_t show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) return policy->governor->show_setspeed(policy, buf); } -/** +/* * show_bios_limit - show the current cpufreq HW/BIOS limitation */ static ssize_t show_bios_limit(struct cpufreq_policy *policy, char *buf) @@ -1616,7 +1617,7 @@ static int cpufreq_offline(unsigned int cpu) return 0; } -/** +/* * cpufreq_remove_dev - remove a CPU device * * Removes the cpufreq interface for a CPU device. @@ -2373,6 +2374,7 @@ EXPORT_SYMBOL_GPL(cpufreq_unregister_governor); * cpufreq_get_policy - get the current cpufreq_policy * @policy: struct cpufreq_policy into which the current cpufreq_policy * is written + * @cpu: CPU to find the policy for * * Reads the current cpufreq policy. */ @@ -2759,7 +2761,7 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data) } EXPORT_SYMBOL_GPL(cpufreq_register_driver); -/** +/* * cpufreq_unregister_driver - unregister the current CPUFreq driver * * Unregister the current CPUFreq driver. Only call this if you have From patchwork Wed Jul 15 08:26:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235559 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412288ilg; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrWpeor7RyVLDpEhsa10pzwqHINXUdSLvC/qLc3Rws0teH2/q+pzIb6Ck9GMs9u54SlCgf X-Received: by 2002:a50:b065:: with SMTP id i92mr9047461edd.112.1594801606607; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801606; cv=none; d=google.com; s=arc-20160816; b=PiZECCt+SXFxRycU3luDQy3i952p4eDO8RQ1O9lGct8fEUVdMH2rtKmHsxcwQbxDfv 1KjTmYrWmFEA9RfaxqOc2M1O/4JqES6UjMs7QbFYTDjCoqCQN8J1NRTpwEZ8zo0dspeW bciYTLPqhbfjwrfMgJqW6iDHNbRF1iYwXA5bZLBdw7HpByOC+OnZfczBah+jCqslLdBd p8qC0uP8T+ujUykiK/DUG98zn7WB8f/tkyP9c5eVnZ6AmzWpuNCJMtBoamtxBhb3Z6u8 1OOHt9hGgCaZXHOn4RdHcwxskGLaFtT5LaULl3MGXM1E1JpCjNbX1pvmzVglAyJpQcvq wm/g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JqiGjo2A+JuWYmJhOxUeBH7YynB0Z20iJW99N6uR5uY=; b=tBaEgqozR92NBS5gCDZhwFsmwGr4Q2hhiIfdTVFu9+C1hJPljSHikpUEriHxsboKSH CukLShs160eBrEA6RLBZUpxgHn4MZRpZEAsqFqQR9lWaoYSiCiKGyMHV8OBtiHI6DaGc /+BQDDanhhgnHsIzX29WSwVMYU5mWEQY/khWoOvMAfYO75yzO09zV7InBRFwVGT2/DiN hKrgHg82PWwmMQzVgJDh9jb7jowm2K4tUXgL4IqCHIM+vCQj7yKSH6c2bV2mgPfwXcX2 05rJFi4su2U9hsY8sosZFAKWxtPK9ADqhnoz1+r+22C7iSFBsQ5zJgUOJFP12+vmk1RH 1+sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CDfyeeeQ; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw28si870595edb.424.2020.07.15.01.26.46; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CDfyeeeQ; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729875AbgGOI0o (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729868AbgGOI0n (ORCPT ); Wed, 15 Jul 2020 04:26:43 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185C5C08C5DB for ; Wed, 15 Jul 2020 01:26:43 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id c80so4501558wme.0 for ; Wed, 15 Jul 2020 01:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JqiGjo2A+JuWYmJhOxUeBH7YynB0Z20iJW99N6uR5uY=; b=CDfyeeeQ8Et3gI4BeM9nFnG0rJHPytBjxmubMrji/xwR7Y/4y1u7qdOOK7R0COCM4j DixdnjvwrQY/XWYwRHdWwC/lexyC3w/Zw35GVuHu21hHXhW7No33wZJyu4URGeL8PpVJ WYR4aiH1P1yPpX0wpis2ygq1Al65X2lq0zbOkuLm8i4Fsj9/Qagc0/HsjhXnyB4R83Pk Yx531xndHS0pnQQ097IVLNzLELQIIj1zWpd/xpKcfRZUcF8+RQPusKV8eWdxB4CrJmTy DNfP0/wzD8uznhQXNoZkppTa1N8/gXGTe+ygny5+WLNSIX0XJhr4bKlOP7t0zA/MYq60 r9fQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=JqiGjo2A+JuWYmJhOxUeBH7YynB0Z20iJW99N6uR5uY=; b=P2M4G4AXbwRSXNKtrMq5p/gvkzByCVZWMuIjbS8/casTqv6ooE2ByO7l1YSdhClx1K 6WjezJjc2sXl2Kkp1Z+NaoKY7+rodL2x/rHTrxK0Mp82dltz7GWxXgOo/rP/FGFCaQ0B YtitvKUOz1c1xY4TwVj1S9zhfYrYrm8iwdsdCLd7CJgXegpTbHX6qVFoEcVH26hx0W4f CAVMO8mV5m/xwh/0toDzprJyDhR+dljvpzvTFV6P+WTGLqZuOsw4ktDX8QHM4RHKKIWi DhWTxjZUkFmzo+iYdxATWAiDTIUD0M5QLCP7JLpsDKeuDEUzPZaSgkk1cxLGAUgJTdS5 N6Aw== X-Gm-Message-State: AOAM532TRBpcEGK1w4CFlrnDpUmBE1biE3YDZ0QOlPoq15jygp/rsJS+ YmryoMZU6RLmbfeI9z3Iu7CB1g== X-Received: by 2002:a7b:cf16:: with SMTP id l22mr8091360wmg.68.1594801601851; Wed, 15 Jul 2020 01:26:41 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:41 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Venkatesh Pallipadi , Jun Nakajima , Alexander Clouter Subject: [PATCH v2 03/13] cpufreq: cpufreq_governor: Demote store_sampling_rate() header to standard comment block Date: Wed, 15 Jul 2020 09:26:24 +0100 Message-Id: <20200715082634.3024816-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org There is no need for this to be denoted as kerneldoc. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/cpufreq_governor.c:46: warning: Function parameter or member 'attr_set' not described in 'store_sampling_rate' drivers/cpufreq/cpufreq_governor.c:46: warning: Function parameter or member 'buf' not described in 'store_sampling_rate' drivers/cpufreq/cpufreq_governor.c:46: warning: Function parameter or member 'count' not described in 'store_sampling_rate' Cc: Venkatesh Pallipadi Cc: Jun Nakajima Cc: Alexander Clouter Signed-off-by: Lee Jones --- drivers/cpufreq/cpufreq_governor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index f99ae45efaea7..63f7c219062b9 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c @@ -26,7 +26,7 @@ static DEFINE_PER_CPU(struct cpu_dbs_info, cpu_dbs); static DEFINE_MUTEX(gov_dbs_data_mutex); /* Common sysfs tunables */ -/** +/* * store_sampling_rate - update sampling rate effective immediately if needed. * * If new rate is smaller than the old, simply updating From patchwork Wed Jul 15 08:26:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235569 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412778ilg; Wed, 15 Jul 2020 01:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPsXOxDzxj/XRxCZr4+JMTQVf/Ea/16czEfpaQqM0+YQiVe3WqqOiVLK6rygoelAF54T8j X-Received: by 2002:a17:907:1059:: with SMTP id oy25mr8887600ejb.90.1594801645884; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801645; cv=none; d=google.com; s=arc-20160816; b=UnmwPQr9pSd7+S5LfsVKGWi7Q1/BLpfHmQPADSqaLE8+/fBErGmJyLpefEmk+lIgkO zqS7dfH9lyoVXasDGC/IJdKTORKk/jnuPhOYdHQgW8nFM8X6SoFhsDiekTg+izfajlt5 wCnvrLPUJUTry6X1eaaxH4WIr1tPqez/9Wy2k5Pyk4hAiWtK7/CaEpsNIm9u3/C+bnOm F/iHfJlRevYyw5IzFDU7jM1jXq2JmwUkE81KOQUJ6Za8eBhF73+EaLOqCpZSpp9xx9X3 rVFe1bVn5iQnM4q28yGfnlfX3Iq9G91hAinmuH1WbgGxzOj9cZzhc1sP0iX49xzknreU Z/SQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CMXxo9aOlmaJXA2Fa0TTzO8LQVMEninajvd8D9uCCWE=; b=Vms/94tA8jh6cfTlr5i6bsU2nRw6BOqetuykZufTehJ5+NNzrwcHEeZ34EhS3BisQ8 Swv7NUuF7FvU12TMwEhWBYsiBR3VKhpFBTFu+s2RKPfe2TGKPrrOScewlqGJXfTuMxBq sBErkAxfZE3onzzcAlqD9y6zvH6KwA3AQqsQcko8leQPxuPjrYU0UQ9ZG31tM05+JTBw 2k91i3NW9XVrIFBLaNfI3GUp68aXuXdI2e2UXnsDC1qPFtsfacr+/9hT353utaBB7b1v KCJCGDm7plHkXXc/33RlSBYjWyC8euCtEgI0upcc9gU2aQROP7mdOMXAUXnQzjki0ihG iJeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RIYma6QY; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si847373edv.230.2020.07.15.01.27.25; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RIYma6QY; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729878AbgGOI0p (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729876AbgGOI0o (ORCPT ); Wed, 15 Jul 2020 04:26:44 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45E3BC08C5C1 for ; Wed, 15 Jul 2020 01:26:44 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id j18so4487161wmi.3 for ; Wed, 15 Jul 2020 01:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CMXxo9aOlmaJXA2Fa0TTzO8LQVMEninajvd8D9uCCWE=; b=RIYma6QYVJVX6sqCjeZBICMdCBquDgYeFce4Jjorpqiq7zVo3szfhUm4pDcZJS/EP2 MgHKxk8sbYqPhINXT+ihq7Z+FPUL88ygpZTR9S9keXtmRiQkBEAZU9wOg7IepglGZ5V3 7Uatq6z9XXTfwuVtrVswMQnZS2m6VM6sc+tdRkNX+ZWjljHPeHVXCfTCLd47ZSHaf3wP ITNYuyx5yxK4Z8HU14+yXtYr7qEePdUPEPa7trGn7u2t6HuscGs4dP6QwfwbGpQIOblg V8VevTZOBiVo6MxkEFM/i/sakGOYb4E9xmukn6RPywOIHyTwKTuAomGD/vQRObzaHIuF HWtg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CMXxo9aOlmaJXA2Fa0TTzO8LQVMEninajvd8D9uCCWE=; b=kpTZTklQq9MpM38ju1PrM1G6S4hLvbSJdxBvn4/f09yCRXUYAWk3OiBSCC7eoowIu7 7TLDU7DRQJ8wxQIWFydqGbu9DaUOq/+HLzpZLpnXtG2k95LFHE465YTd3ZCnpXzE8ZrC awPDe+pGoDcIcabUTZYyM20LW/rBT+83zGKSpMeB/ZfqjltMZadr2qOE0D0hQ+BGxPok 0GWZYmDUxqXqXCFNyoNCSxxVHXLCpTIpmise3n03ohj4IJUMsKhACO3KmG70np47Hj+g jCOlBsP3aUJZpKWM0RK+suI6H/FFlJa9FCTSfQbZzxg8Zlsdylen+isXlLVQ2oHLRIV7 BSLQ== X-Gm-Message-State: AOAM533/7OLg7i7Jf/HTtyMkDDsZCqP9ZSwnIlhhPEt+qqukpI1M5BHP F7cb3QvOzNYKvSlWCsD/xGDeWA== X-Received: by 2002:a1c:28a:: with SMTP id 132mr7405874wmc.109.1594801603021; Wed, 15 Jul 2020 01:26:43 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:42 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Patrice Chotard , Pal Singh Subject: [PATCH v2 04/13] cpufreq: sti-cpufreq: Fix some formatting and misspelling issues Date: Wed, 15 Jul 2020 09:26:25 +0100 Message-Id: <20200715082634.3024816-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Kerneldoc format for attribute descriptions should be '@.*: '. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/sti-cpufreq.c:49: warning: cannot understand function prototype: 'struct sti_cpufreq_ddata ' Cc: Patrice Chotard Cc: Pal Singh Signed-off-by: Lee Jones --- drivers/cpufreq/sti-cpufreq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c index 8f16bbb164b84..a5ad96d29adca 100644 --- a/drivers/cpufreq/sti-cpufreq.c +++ b/drivers/cpufreq/sti-cpufreq.c @@ -40,11 +40,11 @@ enum { }; /** - * ST CPUFreq Driver Data + * struct sti_cpufreq_ddata - ST CPUFreq Driver Data * - * @cpu_node CPU's OF node - * @syscfg_eng Engineering Syscon register map - * @regmap Syscon register map + * @cpu: CPU's OF node + * @syscfg_eng: Engineering Syscon register map + * @syscfg: Syscon register map */ static struct sti_cpufreq_ddata { struct device *cpu; From patchwork Wed Jul 15 08:26:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235560 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412312ilg; Wed, 15 Jul 2020 01:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCD36AWUQzPFhJrxcsjtSk9J9bzsr1xfhfY/B0RBr0Vt0D262sJLqsqtIevhs914cLLbTx X-Received: by 2002:a50:f149:: with SMTP id z9mr8571570edl.167.1594801608646; Wed, 15 Jul 2020 01:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801608; cv=none; d=google.com; s=arc-20160816; b=MyuhKSL1dWp5+DyjnEDY2N+hsMlYNY0AMRFhkA8wp50NbNWMCnc+CLQGU+TsurkZMY 8OpBzOrIvmKh/FA0WpU/WBllreUn+GZlc13jkACDjwFZqEOv3dUXA8/LqW4Fv882fTtq tJyTRvWzla7XWXpvzpZMhEYcpJEFE9Yl4f+yl9HzgQuFcqFIw5hdAYehY3Nh7Dk5M7AJ Nxv1mHohhSv5kXjY4Qff97vuZITjfFsRNTRqzSWNByflumoQgj7hNPSucrbV1CVHxfiD quVgxKkWoimGpLo/1LucRxlWTZnhK6xHnLShGm1L9kiRAHdlezU/atYtzw//esYhDziD A2+g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MCk19GsQjhT9V6ZH5VfzAX6PQXTZggJu/iEJMuF5hMQ=; b=pDEhXPSQNl1zZR8pe6g8P9wv3r9b20pM8ZOfX6LBSLfJi3NQJ85i4yYF/G6bmWeGxz mvbpOrpuP7iw6UCx2hgLjrdEnXuwyzXAP9wHk7F1O3O7ElXvx1XR1+rvX7rQcSQVCbOq MYYH7VXrtbX7P4rndep4sZ0P5AdMGtzbCtMkyLnjjaqUIPoqV65k0/x98q4lvrXCJcHR 8iFszRos+M5RnxCdaRotn1E8KfQa0VY4PaIWOfqp8QkwqmvPAgjGV7ZWh6te+hj77Uva cc3A4j1dZLxrcZhsUyOJVYkwnkJ7xpXq35NI/aK12z+/bNA8zWKnm+V8VpWPPfHtZk9j o6UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V2Eh8BkZ; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw28si870595edb.424.2020.07.15.01.26.48; Wed, 15 Jul 2020 01:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V2Eh8BkZ; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729890AbgGOI0r (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729880AbgGOI0q (ORCPT ); Wed, 15 Jul 2020 04:26:46 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 888AFC08C5C1 for ; Wed, 15 Jul 2020 01:26:45 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id q15so4502529wmj.2 for ; Wed, 15 Jul 2020 01:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MCk19GsQjhT9V6ZH5VfzAX6PQXTZggJu/iEJMuF5hMQ=; b=V2Eh8BkZ8dcCa53IaQSf1cFlilO/zt8ksPMcm3ZyMf7Kh+zTEEuh90evBOvEi61Q2K 54BEgKiKD5KhfqA0S1X2/Xd7JybfTairskcEafqLYETq1pXo/nwW50FaHThpGQJCKMDn N3w4k2sMMWuls8XD56YVqhTbHLtGtFTQdrBDWb/tFACe+fXHnJj4BsEkhGl8V6oDKxYs xzRwW8j16fa41Zbo1mO6xdgn8cV+YCawvLHsJt/E0QV8Vg3yLLpnjDCgblt7FADeb/9C es0UE0y/wxLnmsVmvRJLRckXYkWxyYcO5DGgT7rfz45lcFYKT+dOAz1YXilbEV5zMmX7 /WFg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=MCk19GsQjhT9V6ZH5VfzAX6PQXTZggJu/iEJMuF5hMQ=; b=frf13vyo4yYt+37YvVOXUtXdeZXFcDHxkNUYbjQTuepAvzOuG6FJTtnN4Z/rkRLWtJ i01CwGINVO3Ini5QfAQNJU7XFyXHCoDycktWP8oLMwM3PRBaWPQBLA6h+zY5xaNWc3rd u/ByuGyJpgAVIYvzQS5muc1MaEuExyw3PrOHlVze8xmqvQPReRwsvzVfNMs2l/BtKzLh 9wnjRU2izYLzWxAKpDlZbMnF6cKr3wRyz+iGUYL+EfC4Jf9e1sVUWd/lfCO6EbUcuJIK F4gXMctBICGMAkXFVDLUSaQf97QSkCXfA1SGLRsS3qkt93mocABf0bStNbT7ICTJgR+1 h8zg== X-Gm-Message-State: AOAM530NHVFhUmO7Ptn/0RcOajYsO/oUgJHdyO0uY9Y5LJ3xOgIKD5AU 6mcjhCw3J2FStcQOPkSNklcQysja2eQ= X-Received: by 2002:a1c:6354:: with SMTP id x81mr7228802wmb.98.1594801604289; Wed, 15 Jul 2020 01:26:44 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:43 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Olof Johansson Subject: [PATCH v2 05/13] cpufreq: pasemi: Include header file for {check, restore}_astate prototypes Date: Wed, 15 Jul 2020 09:26:26 +0100 Message-Id: <20200715082634.3024816-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org If function callers and providers do not share the same prototypes the compiler complains of missing prototypes. Fix this by including the correct platforms header file. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/pasemi-cpufreq.c:109:5: warning: no previous prototype for ‘check_astate’ [-Wmissing-prototypes] 109 | int check_astate(void) | ^~~~~~~~~~~~ drivers/cpufreq/pasemi-cpufreq.c:114:6: warning: no previous prototype for ‘restore_astate’ [-Wmissing-prototypes] 114 | void restore_astate(int cpu) | ^~~~~~~~~~~~~~ Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Suggested-by: Olof Johansson Signed-off-by: Lee Jones --- drivers/cpufreq/pasemi-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c index c66f566a854cb..815645170c4de 100644 --- a/drivers/cpufreq/pasemi-cpufreq.c +++ b/drivers/cpufreq/pasemi-cpufreq.c @@ -22,6 +22,8 @@ #include #include +#include + #define SDCASR_REG 0x0100 #define SDCASR_REG_STRIDE 0x1000 #define SDCPWR_CFGA0_REG 0x0100 From patchwork Wed Jul 15 08:26:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235568 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412770ilg; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh0vkkrY13sa9awco5+jpdl8/wHKVHhZ3MDW5vZ0Tnh+Cx1gtw0YaUhvyUITJOLelcfvL2 X-Received: by 2002:a05:6402:b9b:: with SMTP id cf27mr8718371edb.84.1594801645458; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801645; cv=none; d=google.com; s=arc-20160816; b=rXlhMSTYuyr12rdZZ4tHSyD00kLHgFMHm0Q4pVraCUgGpYOT9YK3AhySeiOX/OSHzF 0z6CmmfJTzqeBGyJnWBf9Aum7kQ8TrrDbphqKTzwjYxa5VZOObErdEcu6KondqfcODQ3 NxU1zXrr8GLVjA2a5mHU9awbBk/nsPxFfHRTYQVr82jKVPhA6/wd45c1WDbow5qNpN7P EiLnq/YTLBlmYwuNw75UrgM+f7ZLJHjNnCgrOywmUTgb3N9ZxwnUs3ce1ns6E9SGFO2i ybgiIBGZnVJI2uTGZY3791e8n/3Cl/mwUZtffCleuRiXSi1x0u4JE7eAihmt3dLTykf/ Sk6g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2FEE9EyuKEElP2R0dGV5iQicdnI3vcbhmFFoLiz/bvg=; b=B7gI++YABPLw+2ai7x7aH0wYmRjvyNKaMn71lH3/MVySZWL5NEVGft8yG3m1AwIiYq vkY5dwyjGgOIhdyXsETgTdLMw0gu+1xn+/K6xxz4F5ANsP0JiGhzIWa5GYB08c8cCeWv DMcPe37wHnMT2jATbjJNuHHxS0Wrqcj8YAErjDOToLTLXJy7sA5iXsKQwqLSLyVnbTYM IXO+xUJvex82DbFjl6oeWRXSMbZsvLH+wUVIF4pNFQK2FTQtqSlJ/cHZ91/KvWuFJH9e xwBgJV44cEtvqbC//OjRg81Macro37ZmTaaDVHLw3jg7D31VFU/lZNyP65gFzaP0dTZk cbuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNLsrisc; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si847373edv.230.2020.07.15.01.27.25; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNLsrisc; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729746AbgGOI1V (ORCPT + 10 others); Wed, 15 Jul 2020 04:27:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729886AbgGOI0r (ORCPT ); Wed, 15 Jul 2020 04:26:47 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8BC2C08C5DD for ; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g10so2969807wmc.1 for ; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2FEE9EyuKEElP2R0dGV5iQicdnI3vcbhmFFoLiz/bvg=; b=dNLsriscR4hsRjVJy5HJ61IIk4PpwYkqGkI3F3kDQQeDKRecSXlq3RsNQY2oCbqvYr yZK14gsEQVw7xlfvTfZM7JvCMqfvlrQVrrqRtn83MdQ71BOFT0hZL8oC5qbgiEx20dXq AhE5zLi6V299vlhGlmf96yVFf+aEYUzYOT21qrkVWe/b5KHV8IjzCsqL+yoJCjR+6QTS qoCDhHlD5wC1lXiQlu+TjLdoU+qrC3Egi+XR2EqRUqbwFO56nK2tBacDB/dP9AGYQsp4 6xzTC0Fl0UxZFy7pe5bgbzmpQWKzHYZ/6nMwAUfRIVIfqPQHKtwzaKcds55p7jwTV7si eTYw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=2FEE9EyuKEElP2R0dGV5iQicdnI3vcbhmFFoLiz/bvg=; b=ZnSqwZEBmjyfdl91y1za2RJIT5vGKsrFbRBhb/2xOB1oLUW2l3uf7pFwuCp83dfCvI Nt2cBCNch0t7Pvrf/nYdbLYEt5kHA38nz+o7JLw/Gj/iWsEhE7kqvSVayh97T8zypCe0 ypnq8j4MQ/VXiEYS+Ci3akLRNq7Yk8ggGVKLCDMap8kyA/lvkiH8ceNT6JWR6lOkPgXF fbUGpSIxSmMNsPSW691u0aUGHg2wniPjX4vg5eUHphBL7a4mXrdg+6eij7sZ4KBmru49 0vx1gVvQ+bY7tkMpDpWmoMqLr1f5nKV3orX/tOLFr3+GwmRqh3suNP6CApHKw2w+cUHY volg== X-Gm-Message-State: AOAM5300wawQatCgVyF/tnc0+KYPT6WSFGx3uceptcg3olv+M+FjZ5OZ 5NTJ2PUjP32PD2nU2OB0UTsMVQ== X-Received: by 2002:a7b:c197:: with SMTP id y23mr7896351wmi.114.1594801605457; Wed, 15 Jul 2020 01:26:45 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:44 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 06/13] cpufreq: powernv-cpufreq: Functions only used in call-backs should be static Date: Wed, 15 Jul 2020 09:26:27 +0100 Message-Id: <20200715082634.3024816-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernv-cpufreq.c:669:6: warning: no previous prototype for ‘gpstate_timer_handler’ [-Wmissing-prototypes] drivers/cpufreq/powernv-cpufreq.c:902:6: warning: no previous prototype for ‘powernv_cpufreq_work_fn’ [-Wmissing-prototypes] Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones Acked-by: Viresh Kumar --- drivers/cpufreq/powernv-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index 8646eb197cd96..068cc53abe320 100644 --- a/drivers/cpufreq/powernv-cpufreq.c +++ b/drivers/cpufreq/powernv-cpufreq.c @@ -666,7 +666,7 @@ static inline void queue_gpstate_timer(struct global_pstate_info *gpstates) * according quadratic equation. Queues a new timer if it is still not equal * to local pstate */ -void gpstate_timer_handler(struct timer_list *t) +static void gpstate_timer_handler(struct timer_list *t) { struct global_pstate_info *gpstates = from_timer(gpstates, t, timer); struct cpufreq_policy *policy = gpstates->policy; @@ -899,7 +899,7 @@ static struct notifier_block powernv_cpufreq_reboot_nb = { .notifier_call = powernv_cpufreq_reboot_notifier, }; -void powernv_cpufreq_work_fn(struct work_struct *work) +static void powernv_cpufreq_work_fn(struct work_struct *work) { struct chip *chip = container_of(work, struct chip, throttle); struct cpufreq_policy *policy; From patchwork Wed Jul 15 08:26:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235567 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412712ilg; Wed, 15 Jul 2020 01:27:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4ZOhDR3gh6+g9JQPeegqq6N890OzfFD2N4vZ+5hQl0dDnsseuA5qeTbJ603A6sKJQbjjr X-Received: by 2002:a05:6402:1544:: with SMTP id p4mr8604396edx.334.1594801640500; Wed, 15 Jul 2020 01:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801640; cv=none; d=google.com; s=arc-20160816; b=ANQCaYnn8yyZwlo1oJX4Eqm14uV9RFXcGg7wOB4AgdGvHMMAHUC9MTRTgQ2hmuEulF vtjTKkcDYgYJCRkeSziGuLpbWQV6umsgLOXYZdh0fP8fQDyu5//Mwsy1D21/AiBDydZ/ Nt1+Gas2fB+zmrhfdqHZzXnL3TRDK/Z2y2msY/UReDIagqfFqGBH242qIQvHQ/s9/h67 BwxisWb13naM1N+/Ko6lV0Pc0zscCADaKYkH7s+cbqybsmKumy9gaXqmfagt5yzs0viO 4wwhBm8vwvsUrfkb0gelJAE+Wx8nNGx/WtTUoJtvnLi3rUYG1w1Pqtu4vg57l+YDfMG9 xq5A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4Z0fv79A73/vZIqM6ECnqpdpU/+7K2Y0w7fARWedt1c=; b=iUVco6nXL3Adjs0gQRqPNHo9vUBrWkmxNKuzm2+Bj/wpRBcNRzvJQvJnuIZpkRgNcy uA/GJBr8CdNYOdtiN91MYnfxFXoR+Gly0tirZCQK2p2HjQDVvrY7jn349AKB/m0ynhfS tIXRQ8VcOmaZelrypsNnDMPjQjJ+lM/a8puRyRS81Sk8m/+XQ+8fKEqrJgJuJEssJ0B+ pGZLpqKceEaoNPQSYzsCdkL+fAibtunL663+46U4ZiBd9STTBRMj2J5uJoxHv5OZ4B7T kI2krgFD6hKZrFnBjgMfWkEHPvuvGR2vZiK6OWwO9IC/W1LqDu+5wqsFH1lgDud5pOc4 BS/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wdxG8jLe; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si818166ejv.385.2020.07.15.01.27.20; Wed, 15 Jul 2020 01:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wdxG8jLe; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729908AbgGOI1Q (ORCPT + 10 others); Wed, 15 Jul 2020 04:27:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729877AbgGOI0s (ORCPT ); Wed, 15 Jul 2020 04:26:48 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0419C08C5C1 for ; Wed, 15 Jul 2020 01:26:47 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id j4so1437842wrp.10 for ; Wed, 15 Jul 2020 01:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4Z0fv79A73/vZIqM6ECnqpdpU/+7K2Y0w7fARWedt1c=; b=wdxG8jLedDYRfjs4gGzseOHpJxQaqy1oTFNhn/v43wZILfD7sUfWOlTF/WfpZ53GiT 9oirELAFbfOr4p5MsvB+3S3+PtP7e/IqharXV5TfUubJv6rBsfC9LqbdjWCx3fsWArRs RN3YAggQmoJk6eGn/MiyEbYw3IQ0k4T1WmIM+5/iLbtAJYlKiflIyr5p2Jtis7DbFJlz l+3GYbFdxmaVQCDR3DqZ7fiLFedXA2147Ou9CguKQ4q7pNY/y7oT+rcs2qaXJju7JgkL YgJfJG1bNq9KJ6W7Mt551x+CpJvCFlviz24zy1H4Bb9SL4Xv68oacZ7TTVxXCoVhg5mE Af6w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=4Z0fv79A73/vZIqM6ECnqpdpU/+7K2Y0w7fARWedt1c=; b=gEeiZwisnA+KWK1G0bBVatYVGWbbrbjxCY9MOQVhClxZHnM1X+Mi2t7AMZFUNsTxzT eGd6bBhRsiRvW0CSPQMPftIwXQZQGkjQ0tt4agjuKj9XV+x6D7ABSQh+MDdt1bt1z4RC RaOm7iOt/7PxNV37dkt2oydqHaEqCZqBZ89O4rf+YHWds4FizLCiUrOog60RjB+ymbFd 9de8n5mPyC8elPHeLDqtEuir5efpkcd1dNig6wov2PIGOU2SrpPPwOXNFAMBn6Buw2Dk Ob4WCh7cueh3dYFzy36Yuxm5ajM0R2nqTqRWRHknWt3A/0KywnXCKTGM6n6Y695WORFg Nb+Q== X-Gm-Message-State: AOAM533OYtteZBOPv8vUDE/pIzGuIwO5pOX1l8wjx4wTN7cr239jIusg l25MN9scidY6Sel4IO6sfMoT8g== X-Received: by 2002:a5d:5084:: with SMTP id a4mr10347220wrt.191.1594801606598; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:46 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 07/13] cpufreq: powernv-cpufreq: Fix a bunch of kerneldoc related issues Date: Wed, 15 Jul 2020 09:26:28 +0100 Message-Id: <20200715082634.3024816-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Repair problems with formatting and missing attributes/parameters, and demote header comments which do not meet the required standards applicable to kerneldoc. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernv-cpufreq.c:84: warning: Function parameter or member 'last_lpstate_idx' not described in 'global_pstate_info' drivers/cpufreq/powernv-cpufreq.c:84: warning: Function parameter or member 'last_gpstate_idx' not described in 'global_pstate_info' drivers/cpufreq/powernv-cpufreq.c:84: warning: Function parameter or member 'policy' not described in 'global_pstate_info' drivers/cpufreq/powernv-cpufreq.c:182: warning: Function parameter or member 'i' not described in 'idx_to_pstate' drivers/cpufreq/powernv-cpufreq.c:201: warning: Function parameter or member 'pstate' not described in 'pstate_to_idx' drivers/cpufreq/powernv-cpufreq.c:670: warning: Function parameter or member 't' not described in 'gpstate_timer_handler' drivers/cpufreq/powernv-cpufreq.c:670: warning: Excess function parameter 'data' description in 'gpstate_timer_handler' Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones Acked-by: Viresh Kumar --- drivers/cpufreq/powernv-cpufreq.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index 068cc53abe320..2e5a8b8a4abaa 100644 --- a/drivers/cpufreq/powernv-cpufreq.c +++ b/drivers/cpufreq/powernv-cpufreq.c @@ -64,13 +64,14 @@ * highest_lpstate_idx * @last_sampled_time: Time from boot in ms when global pstates were * last set - * @last_lpstate_idx, Last set value of local pstate and global - * last_gpstate_idx pstate in terms of cpufreq table index + * @last_lpstate_idx: Last set value of local pstate and global + * @last_gpstate_idx: pstate in terms of cpufreq table index * @timer: Is used for ramping down if cpu goes idle for * a long time with global pstate held high * @gpstate_lock: A spinlock to maintain synchronization between * routines called by the timer handler and * governer's target_index calls + * @policy: Associated CPUFreq policy */ struct global_pstate_info { int highest_lpstate_idx; @@ -170,7 +171,7 @@ static inline u8 extract_pstate(u64 pmsr_val, unsigned int shift) /* Use following functions for conversions between pstate_id and index */ -/** +/* * idx_to_pstate : Returns the pstate id corresponding to the * frequency in the cpufreq frequency table * powernv_freqs indexed by @i. @@ -188,7 +189,7 @@ static inline u8 idx_to_pstate(unsigned int i) return powernv_freqs[i].driver_data; } -/** +/* * pstate_to_idx : Returns the index in the cpufreq frequencytable * powernv_freqs for the frequency whose corresponding * pstate id is @pstate. @@ -660,7 +661,7 @@ static inline void queue_gpstate_timer(struct global_pstate_info *gpstates) /** * gpstate_timer_handler * - * @data: pointer to cpufreq_policy on which timer was queued + * @t: Timer context used to fetch global pstate info struct * * This handler brings down the global pstate closer to the local pstate * according quadratic equation. Queues a new timer if it is still not equal From patchwork Wed Jul 15 08:26:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235566 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412647ilg; Wed, 15 Jul 2020 01:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4boT+6MPZE7ildxKG5CCzICsoJ/Npm+TVbnlfdvsDEK44xqCytYEXJVlAjAKBb9CYJceP X-Received: by 2002:a17:906:d04c:: with SMTP id bo12mr5631473ejb.31.1594801635506; Wed, 15 Jul 2020 01:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801635; cv=none; d=google.com; s=arc-20160816; b=0KHiLcS9US2j+pFTfb3oJSYxT8h6smDWABONQKXIHiue9mU4Bh3UJ44MFinJdiU8Yx JUy4cZCFPs5/bUIIVmnAW61YDvO21J3k+H+9flamWZg92U5Z/YdVEKzEdidj7vkhlUsI C5+rrj6B6euQHm6WaXY0p3UsdWieQ/Divtvk+t0DmMTN4ZdX4Q5xcCJyEJ2IY+q5LAlA JLC6dtz1DrkJDQ4GlDGIUcmuLVn96+fSHkdWyaRum8mxpB0nW8bP4eKArkWxOf3/YIC1 nK1WVyaWWqs6v34Jd0AarI22VEiKKW481d8yHeQDHOHWi2LhRlrkyEM+OVJM30eBjFXp KL3A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WdiKEUGtJNb3K8rH57Xa0bqqHuMKs85IufCe6WoIQH0=; b=p3qpcK6sXWVfEYgwssbg07/NTPxIanrpBqmSUEc5O5wmndj+QFcLy+5GD/Cq/IhD/8 WcE0gRQovS77IfNAm7YjAWqegzdvT5cIBJ8lZU8UJPUocTf11Ks6w17Y6AbGD3F7JIF/ qFTIRAtkhxY8jUcTo78ftB1W47Tz7YVVIzhHKfWqoB0tS3D5zLC/bcCBR/oSFZ7SjYoG Rgiz1GiNUlRQcWyN1zxMlUFPY0tjAcbJd7RIwzOOajh9NtEAZ0vAwMU61lzZ2YgcNLEe 7iVJMGSpQM4oCGpkezVOIyK1PKi9fhWJky6s8FqF+SybjLCtGgOcONmIn5OTi4s2J8Ev 8dEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h/tM5Sid"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si818166ejv.385.2020.07.15.01.27.15; Wed, 15 Jul 2020 01:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h/tM5Sid"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729906AbgGOI0v (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729900AbgGOI0u (ORCPT ); Wed, 15 Jul 2020 04:26:50 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A39F1C061755 for ; Wed, 15 Jul 2020 01:26:49 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id q5so1470735wru.6 for ; Wed, 15 Jul 2020 01:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WdiKEUGtJNb3K8rH57Xa0bqqHuMKs85IufCe6WoIQH0=; b=h/tM5SidCdeT9YEPZb0RPN7LNM4OQEfUG0Gla4WTqsbW13CThG9SPV0We8E9oe7eKW y2PuLeXzK9008gi1pAyFmaKBkBvo+0EWGPrnbrzZAy1uJxsvdLwLtevQ30Cwl7ocp8t9 x8sysDZkNQexAapYEh0MZvEOg0v2i0PIGOBb9hBxkdWOboI8mKwgyM8vTXy4oFwM0/Xp F+/uIo/HSfVGWcSiN6+Eg2osFMI5gKrKcnHvDvcmzpYy6any0IIvQHjqhi/efTC0CJ5D 5O3Hc4EOm63rxsyL662vBvMpg3462huBOxdVH3By5OtQKJU4yzWjm2MOQfBtv1HMPH5y bXgQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=WdiKEUGtJNb3K8rH57Xa0bqqHuMKs85IufCe6WoIQH0=; b=Kjd5QsB/DmAuwJgmRoPDx3dWSZwFkS0UKFZn7/lWXle/RQclGhJHpaYSfrQ2jI/d0q VfthKbuEguKQkSlh+Ho1EoC6ZdPzrOvFRv8gTc4JaaaYd+Po72WflgaJdF7n5S2fR2CC E9SESxHxxtSh8F2/3tXH0O4iSHfnxV0THOdyaAC13zQQkvjOT02sW8vxTGxoV1tXYpmC SREQU83wLE2tlpCUIUK2oZZePN1WfXCvk1nbvNKO5lzRej2SwVPYO4iVPYDUKpe2yMsB u19Z+/de8NvxTVjU11CNHUj8CunSEDpKrNqW2AnwIQST3iVAdmK980Lky703jjugYXNt h75A== X-Gm-Message-State: AOAM533g+ravgrJnx62fEAds3JOBPDK4PdYZt+KLOnoRfEwGi+gryEK0 /eLrtMQ+FOiZnwF6fnuvANrmwA== X-Received: by 2002:a5d:540d:: with SMTP id g13mr9474170wrv.380.1594801608318; Wed, 15 Jul 2020 01:26:48 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:47 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Andy Grover , Paul Diefenbaugh , Dominik Brodowski , Denis Sadykov Subject: [PATCH v2 08/13] cpufreq: acpi-cpufreq: Mark 'dummy' variable as __always_unused Date: Wed, 15 Jul 2020 09:26:29 +0100 Message-Id: <20200715082634.3024816-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org If we fail to use a variable, even a 'dummy' one, then the compiler complains that it is set but not used. We know this is fine, so we set it as __always_unused to let the compiler know. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/acpi-cpufreq.c: In function ‘cpu_freq_read_intel’: drivers/cpufreq/acpi-cpufreq.c:247:11: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] drivers/cpufreq/acpi-cpufreq.c: In function ‘cpu_freq_read_amd’: drivers/cpufreq/acpi-cpufreq.c:265:11: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] Cc: Andy Grover Cc: Paul Diefenbaugh Cc: Dominik Brodowski Cc: Denis Sadykov Signed-off-by: Lee Jones --- drivers/cpufreq/acpi-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 429e5a36c08a9..6b3d8355c8dea 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -244,7 +244,7 @@ static unsigned extract_freq(struct cpufreq_policy *policy, u32 val) static u32 cpu_freq_read_intel(struct acpi_pct_register *not_used) { - u32 val, dummy; + u32 val, dummy __always_unused; rdmsr(MSR_IA32_PERF_CTL, val, dummy); return val; @@ -261,7 +261,7 @@ static void cpu_freq_write_intel(struct acpi_pct_register *not_used, u32 val) static u32 cpu_freq_read_amd(struct acpi_pct_register *not_used) { - u32 val, dummy; + u32 val, dummy __always_unused; rdmsr(MSR_AMD_PERF_CTL, val, dummy); return val; From patchwork Wed Jul 15 08:26:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235565 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412636ilg; Wed, 15 Jul 2020 01:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9eY+cEuAKQPpdswo360z8QW70+RK9Fafc9+iT8hls0eCphib0Sl4P6Z7rAHMsb4wXUnol X-Received: by 2002:a17:906:82d2:: with SMTP id a18mr8089533ejy.522.1594801634913; Wed, 15 Jul 2020 01:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801634; cv=none; d=google.com; s=arc-20160816; b=AMBLWD23tBLtAPrCeC9RYGhiSXXryzd4wy7+VlS1Pso2SF42ZomumFo6RvTfDKzn+M c1nRfBg7RkAF1g1A0JI6P38V1jKRKmyBU11F4JWy3AmyXn7Io6jzprrFavnXM+yXdM39 XBsJHJXW2GelDffgUgvlZ//MAsyQ/lbzC1cy3R0YFZfPzsKagpL/Q2uwdV8vwOGrFfC4 76AetbZfL+HjEjj4g2fVFBnR8hLQHYVeAFOFYk+8hTypG6cYQmiuXySndbgWddoH+iue Ce0D2WDglEVYcTwmd3bGm9hfw/QWsdkqmMetY+tZ7Hz35W+P1i5tewOdiqNpt+ol6XwK 2eWg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8zTw93zoLeDrW9YVUykvWKpkCsGvq1SvpdvOV91LIDI=; b=qR2UWkJFcsF7bCPuruX202Ko7pwJHtziX9dW10ATPsYz/HsY6pZXK20IoW8zzK4+Yt AMEsdUQedXIQlDx4iV11yoh89YmhlWy5Oi5DbGBJTDiVLCb+5HB+njeg+Xl018x1QsvE zFzwWD9WhitxTuqZwldnGhPWklkgG8+M5zidJjO7Mu1U1oWgPMYOyUjFaiktOM5gSSsv HJwuZn/gZZRdElT74v38BLCoDNze17+8aCZyJRBEjalxMJ6HufN3i7zBgKNM9cegO+Ca Usx2gvcoNlvqXO+2fpWdpdOgkKEOFMZxeC0UlknUvGIdoEuV4aU1CPUye3f2k/knwoWY eCDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PoZeCokh; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si818166ejv.385.2020.07.15.01.27.14; Wed, 15 Jul 2020 01:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PoZeCokh; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725932AbgGOI1N (ORCPT + 10 others); Wed, 15 Jul 2020 04:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729908AbgGOI0v (ORCPT ); Wed, 15 Jul 2020 04:26:51 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D2AC061755 for ; Wed, 15 Jul 2020 01:26:50 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z15so1459993wrl.8 for ; Wed, 15 Jul 2020 01:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8zTw93zoLeDrW9YVUykvWKpkCsGvq1SvpdvOV91LIDI=; b=PoZeCokh14NVCVrG+W6OCssjbdxlYt+BY2RPI8eovLbhPzaLoVu6hY0++nOStWvk7G AC5m93nmVlLOGmyl+yyOzhE20jZByNmfhTjC3f1OsE+xOaSFhOEZD1adMHSUY86nUcdq 003S8WLfCC4kJUQP3B7nLpwZLoeL5quxpYHznQprltVCVB12xkwl1x6YvqBSR6n+AvvB J+eTnxP7lytE9JrfPxVYJ8Bsd1LHlvRP6P3N0Qlk+cD+UXDt4V9NfWmwaf8F2Bq4MSZ2 NpHfQwClEX7SFhVB8TSaoxSOf1g6l4dy6IsfsJoDadjfzaKDqNqTFIWTX6+6I08pYoo4 qDMA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8zTw93zoLeDrW9YVUykvWKpkCsGvq1SvpdvOV91LIDI=; b=KlYMKijiUgd75Vp55960FkD/PAPDm/pMgFbkOpWiXWgCMxLiQnzxVaKDbSyJ6WJS4P 5MaHzcewN8VplC0qfic3tHE/zOaXDmmIPpxTMN6QJCLq6a/QRoldzLv0nGxrKS9pzVda 0okaI3hwOg85YaO9ChDUO5vKNOZMvoXoaUzUDWzkGBrGbmY/GLGGBV3GVy20IBJj5UBF vqG+W0Ge9WnwyWy61PtnSxsMwQ27z02ErFuS7EBQsiWDDQA9E7m62Aij7kxfJvu5R9RH DJF0U5SpDiJ7zM6iSOGw4efxy9uPD+Xs8kefdWiKtarCX6lBXb8QMiVsZkxLEeapKm/o BJUQ== X-Gm-Message-State: AOAM53123odX8lFpmL0QT/7KYyHiSb1PcMX5iIrVO8XrhXE8Ie89lRy9 hoV7gXOL4eBWSKiP2jy9EpZqyw== X-Received: by 2002:adf:9062:: with SMTP id h89mr9316099wrh.285.1594801609515; Wed, 15 Jul 2020 01:26:49 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:48 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Andy Grover , Paul Diefenbaugh , Dominik Brodowski , Denis Sadykov Subject: [PATCH v2 09/13] cpufreq: acpi-cpufreq: Mark sometimes used ID structs as __maybe_unused Date: Wed, 15 Jul 2020 09:26:30 +0100 Message-Id: <20200715082634.3024816-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Not used when MODULE is not defined. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/acpi-cpufreq.c:1004:36: warning: ‘processor_device_ids’ defined but not used [-Wunused-const-variable=] 997 | static const struct x86_cpu_id acpi_cpufreq_ids[] = { | ^~~~~~~~~~~~~~~~ drivers/cpufreq/acpi-cpufreq.c:997:32: warning: ‘acpi_cpufreq_ids’ defined but not used [-Wunused-const-variable=] 619 | static const struct acpi_device_id processor_device_ids[] = { | ^~~~~~~~~~~~~~~~~~~~ Cc: Andy Grover Cc: Paul Diefenbaugh Cc: Dominik Brodowski Cc: Denis Sadykov Signed-off-by: Lee Jones --- drivers/cpufreq/acpi-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 6b3d8355c8dea..65bdedcc7f142 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -993,14 +993,14 @@ MODULE_PARM_DESC(acpi_pstate_strict, late_initcall(acpi_cpufreq_init); module_exit(acpi_cpufreq_exit); -static const struct x86_cpu_id acpi_cpufreq_ids[] = { +static const struct x86_cpu_id __maybe_unused acpi_cpufreq_ids[] = { X86_MATCH_FEATURE(X86_FEATURE_ACPI, NULL), X86_MATCH_FEATURE(X86_FEATURE_HW_PSTATE, NULL), {} }; MODULE_DEVICE_TABLE(x86cpu, acpi_cpufreq_ids); -static const struct acpi_device_id processor_device_ids[] = { +static const struct acpi_device_id __maybe_unused processor_device_ids[] = { {ACPI_PROCESSOR_OBJECT_HID, }, {ACPI_PROCESSOR_DEVICE_HID, }, {}, From patchwork Wed Jul 15 08:26:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235563 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412506ilg; Wed, 15 Jul 2020 01:27:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ6t9pCAwIU2wcXQwLAxZoQ1pKeV8/qtvsVu+KQ2ttnkdrqqwr2NmAZ2N1bGp5G4B7dLjZ X-Received: by 2002:a17:907:2105:: with SMTP id qn5mr8111217ejb.308.1594801624451; Wed, 15 Jul 2020 01:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801624; cv=none; d=google.com; s=arc-20160816; b=Y6YrI0fs6dRFmcQ1rKER+zghKrjsqUTrTequNrJpacQAoqF48TYZ065zmpQ5nYPWFU tKU54DeHoSzW2FAcPj15qcU8MGum2qRdHN9//wLQIURVUvhKWWoOi2jBlkOKfljxqLTV 8lasveKO1v4iqhXWgNLfO2oIPNpVl1+EMqi6VsDZvWaHeN6gauHWZixQFtjqsUU5OmRN r/DegSYiFEgtrl5iE6MmwZl22mcObqOhflT7m5mPk4jicM7rgVzZzdwmhQI+SWV+A3h9 7/Y9J+t5DGO6zU69U2GjTCtWqFdzlTClJiYwyc4BVt+wGN1flc8iJ9dV3T0MrIOk73Rs Mdgw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yBqTF9msKxXESKXR6D7ZZTPRiLswk1Xy6QhvSew6gR0=; b=VsTJnOK1uDVGWJ1UoZZPBEN4GXejLTteYo4atey/VRy5dEV+gnhfILyrQgQV4IPOLr 09uZhnLjMvVIzJAV2rIG/Hcz8hwuA+FafEqLWTMLZwb/udJax9tWfwLO09oOiLYORmju P4VG7ZweN/Gn/qebNgppt5QLUblQwgyEwOxXleybrtReQQsdNKgXpxLi+FW5X0JJU3Ph zKY/IzqgthUmHUFGTGr287UPs4FjM/ixSzEqO1hhdhQjEtfMGTTAmB/nSo0EEUXyNV2t 6MCz7nrVcwEwSq4hut4xs6n3xMSidKrnrUDeE/jGA7df5Sh6jelQDTRjX0FW6/jtMLQQ HUIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oRHNplZ7; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si818166ejv.385.2020.07.15.01.27.04; Wed, 15 Jul 2020 01:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oRHNplZ7; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729925AbgGOI05 (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729921AbgGOI0x (ORCPT ); Wed, 15 Jul 2020 04:26:53 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F23C2C061755 for ; Wed, 15 Jul 2020 01:26:52 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id s10so1419489wrw.12 for ; Wed, 15 Jul 2020 01:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yBqTF9msKxXESKXR6D7ZZTPRiLswk1Xy6QhvSew6gR0=; b=oRHNplZ7GSg6wW9XCQnXu7Ag3RRbpbsqZQOc7oxhhgEyiH+dzYvNYDSO1XjRvkWcJl 7uBZeyJQHXz5gFKwdA4IaSPpjV0DX6KUjXmZbpt8DBZ3nZ44yItO9dQ//zBdrT/9cvTm Z72l+F9wCR8PderUySuiWy3jJEaa+wHxOy/cCPEY1a5C1RNJjZLnes/9fkbm4M1QHuS+ PgfHkNEUwTaIxHSK6Iv6NBKuuHfF1GDdnFJjO0G83E91e34xz0i1ZA2+w8hIbKEF8GHy LlIZ+WuoYrKed+fVVbT2gpUEMdYo71pO5SW08hEGUWqSPfskXX6Mi9dOWpWUo89QJinQ FZZQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=yBqTF9msKxXESKXR6D7ZZTPRiLswk1Xy6QhvSew6gR0=; b=j+tSGeAG+jpIjoW4WzIMpbo1qabNGo0sT36drz95IdsoKAwZygpGgb+kGZBsHPdZ// 1Xa7gKLYu8pH81jDtNs9Yli0OVOA+J57tDl6E3TFCzOmY+0IGX696LCJa6SzxhFUUSOH tM7cheUbnqbaGx+36M5FTurCWi42d+avhX0M4h7Tciktd62cob0DU4rbDuyQFPBoD9vm b/PiLtLOwpv1mFTefesoV3/UsYSnE2oXZr8ir8ElzHtN+MukKXTn4U0jf8gLZq49IKCt hSn8RNmSJBKePNQjUPkokTj47Kb4e1rRvi/gksBftLIKgA7mVTcCf7DhpF5rMRAdJyyv rgSw== X-Gm-Message-State: AOAM532xMcsfAQJNWdNHcbH5VYQATcynsu5ruBQUzhItGRsT36EHyPeB w/qp4/3PfPb67jUA98/ReWbevA== X-Received: by 2002:a5d:6ac1:: with SMTP id u1mr9898491wrw.123.1594801611303; Wed, 15 Jul 2020 01:26:51 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:50 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Andreas Herrmann , Dominik Brodowski , Pavel Machek , Paul Devriendt , Mark Langsdorf Subject: [PATCH v2 10/13] cpufreq: powernow-k8: Mark 'hi' and 'lo' dummy variables as __always_unused Date: Wed, 15 Jul 2020 09:26:31 +0100 Message-Id: <20200715082634.3024816-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org if we fail to use a variable, even a dummy ones, then the compiler complains that it is set but not used. We know this is fine, so we set them as __always_unused here to let the compiler know. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernow-k8.c: In function ‘pending_bit_stuck’: drivers/cpufreq/powernow-k8.c:89:10: warning: variable ‘hi’ set but not used [-Wunused-but-set-variable] 89 | u32 lo, hi; | ^~ drivers/cpufreq/powernow-k8.c: In function ‘core_voltage_pre_transition’: drivers/cpufreq/powernow-k8.c:285:14: warning: variable ‘lo’ set but not used [-Wunused-but-set-variable] 285 | u32 maxvid, lo, rvomult = 1; | ^~ Cc: Andreas Herrmann Cc: Dominik Brodowski Cc: Pavel Machek Cc: Paul Devriendt Cc: Mark Langsdorf Signed-off-by: Lee Jones --- drivers/cpufreq/powernow-k8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Acked-by: Pavel Machek diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index 3984959eed1d5..0acc9e241cd7d 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -86,7 +86,7 @@ static u32 convert_fid_to_vco_fid(u32 fid) */ static int pending_bit_stuck(void) { - u32 lo, hi; + u32 lo, hi __always_unused; rdmsr(MSR_FIDVID_STATUS, lo, hi); return lo & MSR_S_LO_CHANGE_PENDING ? 1 : 0; @@ -282,7 +282,7 @@ static int core_voltage_pre_transition(struct powernow_k8_data *data, { u32 rvosteps = data->rvo; u32 savefid = data->currfid; - u32 maxvid, lo, rvomult = 1; + u32 maxvid, lo __always_unused, rvomult = 1; pr_debug("ph1 (cpu%d): start, currfid 0x%x, currvid 0x%x, reqvid 0x%x, rvo 0x%x\n", smp_processor_id(), From patchwork Wed Jul 15 08:26:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235562 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412441ilg; Wed, 15 Jul 2020 01:26:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxor2oAN/YPhKqjpKUK1l2HyZs2AJVFp/O6MJKI8DPeS+E8p3tvjFT+kWN3dPg9kz2AWASJ X-Received: by 2002:a17:906:f183:: with SMTP id gs3mr7748229ejb.361.1594801618392; Wed, 15 Jul 2020 01:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801618; cv=none; d=google.com; s=arc-20160816; b=IveMB3vYh5Fn/aJzWIcY+PGwvMZDWSTO4l21UwPxT+s6GEdWFwkoNKndtHitDZGDe+ d5CMx+G+0fZXdJ+nDr+Zb1/aidG0qLYhWB+ZLEs8gwK24SydyQWvdu+bxuDA0YLzffO6 RxD8WG8d5GE2HnIRsb0rRSUP+OEimzMoiUyyld50CG4b5TBXFbWA9u6c6cD8rQZ5h/ic 7MXJFQEJ7YUR6PQECsIDOXC3kSAsUP5gtIeYmJplDa7kzNDMfGLUA3wRw37ZKt8/6cUA W5SuDap4WS/xfgIQ0kpL0VPpoA78D+8sR+PdtQGhlRPeMxRDe06tLNHf7vK9n0xFaeQj 4A5Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DCQLIBPnltOFRS++BAxztAHTwj2wSWnOs3LHnUsG1Vw=; b=HNb0Fg9xc0KuBhMOqW62NqlnQau9rR+cfhcumgJc49mdIhjXC+eq/u5MeO4FSooT0Y tfM8oEXyWhAVdDt1f4RHhPC7spgopSJrQ1gT7uvdPO635FobsjpPPM/YoTeRGIIRYX4d saPgt2V2XnhbnoQfwiQgQMJG4n7B+I/MZ80pjTYZf6vtLu0gFoR3NgWyJUeFCvey/Lij EFmEY4p6EmtJfCUpsD/Kn9WK1jZBd9+dGFss4adVU0xEWbYIc9rdvLHFRPYaef/l2Z+J YImU/7ENxgurNuyj10Y83j0Z9cTnL/ajeDXDCFRrkr1DzYUQqgreAg3YhLmHoUy6zm4e y+Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MCdybl3G; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd7si803835ejb.615.2020.07.15.01.26.58; Wed, 15 Jul 2020 01:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MCdybl3G; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729928AbgGOI04 (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729925AbgGOI0x (ORCPT ); Wed, 15 Jul 2020 04:26:53 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84508C08C5DB for ; Wed, 15 Jul 2020 01:26:53 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f18so1528148wrs.0 for ; Wed, 15 Jul 2020 01:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DCQLIBPnltOFRS++BAxztAHTwj2wSWnOs3LHnUsG1Vw=; b=MCdybl3Gw37G1Bq/aJP5Pe/EbpLyiPirff+C0yH74i5zHU8WcFuucv4pc/ZhtSSWEb ttmjNt5ZOBIvwTOM+6NTPRrCdWBMnzyTvyBLIj9ihMHFxmoMVzIWV6oDuc6y7Ddiatc+ odBn85hD3ytXmPY/VclQxhIvmv+JEXhZ/+C/UmsSczSruP7d2KHaPnrQXUuIKYHaVTle aqGRE6kd+T5yIuyJ7NE9pl8ssXT3aL++/ogfFrPvX97pp8CLI1PSDK5sv11Crmh69/s8 cdeR7g8HxgeKnBP4l2E4bI0m07BfB8de3Xn+NIPTWcrVc0fTiXnI3i5b1Bf+irA6SiuL z/bw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DCQLIBPnltOFRS++BAxztAHTwj2wSWnOs3LHnUsG1Vw=; b=fYKO7zp7NFKrph9q8pOMDDVm/kJpozkkG6s2ilBqeBLMgLmHXZd43m+cBwcdOXa7jZ ELDg4lVWTwZoB4pOmogAD8nauEj/63R2XtCedJTF+zM6QjzEQz78YPTbCnSwbQRPNzXk jr+MVwKk+rMxKJr0e2bzZ2cJ3mGQCi9lHYxOk16Q09kuFPle5MkIZCDFdnpQlz/hBdBd x4mvvmEavYZ7HeuM8VvPNWFPOCfNfLAmg5CLHoDgAYZHQHbvQrQmpcR4BQ/NVVKDV+Hs wAIyCBsxNFH3qVPYfr3+2tN9NhmW5iiehwuY3fnvyNhAuuEp9THN9xiI5ijuwyt43434 icvg== X-Gm-Message-State: AOAM531MxBCUEnK8sk+1OEYgqcJjbZqzehuqBX27TwBOLfIHgsRKIfee Thn4d2P0T6p7/mL5sLH3CAAFYg== X-Received: by 2002:a5d:6912:: with SMTP id t18mr9955251wru.411.1594801612237; Wed, 15 Jul 2020 01:26:52 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:51 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Matthew Garrett , Nagananda Chumbalkar Subject: [PATCH v2 11/13] cpufreq: pcc-cpufreq: Mark sometimes used ID structs as __maybe_unused Date: Wed, 15 Jul 2020 09:26:32 +0100 Message-Id: <20200715082634.3024816-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Not used when MODULE is not defined. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/pcc-cpufreq.c:619:36: warning: ‘processor_device_ids’ defined but not used [-Wunused-const-variable=] 619 | static const struct acpi_device_id processor_device_ids[] = { | ^~~~~~~~~~~~~~~~~~~~ Cc: Matthew Garrett Cc: Nagananda Chumbalkar Signed-off-by: Lee Jones --- drivers/cpufreq/pcc-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c index 5789fe7a94bd3..9f3fc7a073d07 100644 --- a/drivers/cpufreq/pcc-cpufreq.c +++ b/drivers/cpufreq/pcc-cpufreq.c @@ -616,7 +616,7 @@ static void __exit pcc_cpufreq_exit(void) free_percpu(pcc_cpu_info); } -static const struct acpi_device_id processor_device_ids[] = { +static const struct acpi_device_id __maybe_unused processor_device_ids[] = { {ACPI_PROCESSOR_OBJECT_HID, }, {ACPI_PROCESSOR_DEVICE_HID, }, {}, From patchwork Wed Jul 15 08:26:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235561 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412434ilg; Wed, 15 Jul 2020 01:26:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP/LaSWsO9V72lqSrlomHNn4WVZreDetvYVDBVBu8IWHMxVWs9B8MSGkK6sdcS3U4Ychh3 X-Received: by 2002:a17:906:7017:: with SMTP id n23mr8023891ejj.262.1594801617881; Wed, 15 Jul 2020 01:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801617; cv=none; d=google.com; s=arc-20160816; b=noI/HQ2PoZATPKWWJcx1nwW/zohyMmF1poFvvsHhDWnanP5WWkQadFof2tiu9lkwdQ jheQmZ0L6yUQkQNe8JAQ9iQd7zpLvSpVV5xerIh6lWPCeY9vWtGFyPccn8HGHUgELCjo dwBHzbXjJEB/fiTKC4qBAzZZIdZlquBp7XG0IWFStGX1FYHUpbA2nCgrF+0zX5P2Tugv CwZfSwmoJHAIVMaZBRfn5uh8xx4fOcp9ZJrigEQmcGBBwTTA4Qu1YkpSw2aD3RerMm/c KvN/0udJKxRFFULnq/bzGo3qdyGdH7Q0kcYVTmayATcGEGsUWbCA/MOHrk6qpcF9rgz1 N3nw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xDE1zUX/1JKQBQmQqlPliyHfkazrkQ232Ej5nXmiXwM=; b=Vgy9q2FTRQFUyqui2LmWNK75jY0RziYEaESKSvwnmoR18eTHaB4TTxS/auwOJ656fF yfGdh93VxnD8fgZqYW30uYKT45gGShRirMaf28TedgKXLhYyy3bhMJErelR6JDGmqFEP etO3jkqgcwcKV7vgNrYJeYlrC19oN29X39o67vZKaVbJ+4IZovM1idhjrXI6Zq602Kdv C8n8Bdz8cgwkBnQ25zXZS57hSKA5YRaNu2IYr4KKOaXL2sFppsSQC2brlpLwDi36jPhb EDFcDFE3Ieh8//y0HGjudZm4qDKv+yjX6MZn1j6eZw4pRj6VFDl6g0wLJ2/uKbKOw9zo mkug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zXIpCOcY; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd7si803835ejb.615.2020.07.15.01.26.57; Wed, 15 Jul 2020 01:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zXIpCOcY; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726648AbgGOI0z (ORCPT + 10 others); Wed, 15 Jul 2020 04:26:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729928AbgGOI0z (ORCPT ); Wed, 15 Jul 2020 04:26:55 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CC9AC08C5C1 for ; Wed, 15 Jul 2020 01:26:54 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f139so4680215wmf.5 for ; Wed, 15 Jul 2020 01:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xDE1zUX/1JKQBQmQqlPliyHfkazrkQ232Ej5nXmiXwM=; b=zXIpCOcYgYHp1oI/hNnk7zY9h2vzxnyGom+gI1qtkY9gm2GpNzrjfPEFEUBPJH5UV6 B6KQaI1nRCVuI+yN6eORsPiXeZ1pz3BSHbCy72HLtafEThX0+RoPRLneZigsJABeab59 zdzPVLTA85+sxS8iafLaTVvgxWdhYc/5554JhGgByGNiv1rSVi/h1HH0DjGavC9IpM/N xhOMe26zXLdwfZOhKkZEvOA9PdP5EnV5oe8Ib/cVIjRGbWpg9829J9rA3vpuOfklOYV8 spprCi/ti3c2ZogtRgF35Z0LCQrJWosGr7Xz/eHYISvhYS+lP1v8pf+RlvdSSzpCWpaI jjiw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xDE1zUX/1JKQBQmQqlPliyHfkazrkQ232Ej5nXmiXwM=; b=mCIpHHtCgL5iWX0DKPoTjrC+fdeK5LOrVz62YsrdwOUt0v5/A/wBdmMRRXQx0lApFB 7No9KsuegJ43ietRpqnXhT1/FXGoutXuKG6wZG5qIEjASIoAXrNFIymuADlyKIresJg8 WhdY5B2ALtJmYt+u4YQVNx40/NdS9+aIYk11JIRcl7GVi5N+CjyvuJeW6j/R6+B6dGcS zDC2BaZo/ORaxtDxnYvwcnrI+dhqt44EPAT1SDABo9KtWw0EhkkCiJUwH1/JKHI2roPv eCkWtL3OP1cCpCF1GAk1dXyp4y7y+OSq2ytXnB0Q1nIZq86oESOaXcwFbtclHwahef9R 7tZQ== X-Gm-Message-State: AOAM533qmW48JrLZ8TaxwiC+00uHFKRYEvFFt5YBIPhp2IbEpsHZ26sv wTH/xnd6gruBUL8QE08oeLZYuA== X-Received: by 2002:a1c:18b:: with SMTP id 133mr7513947wmb.178.1594801613334; Wed, 15 Jul 2020 01:26:53 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:52 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Srinivas Pandruvada , Len Brown , Dirk Brandewie , "Rafael J. Wysocki" Subject: [PATCH v2 12/13] cpufreq: intel_pstate: Supply struct attribute description for get_aperf_mperf_shift() Date: Wed, 15 Jul 2020 09:26:33 +0100 Message-Id: <20200715082634.3024816-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/cpufreq/intel_pstate.c:293: warning: Function parameter or member 'get_aperf_mperf_shift' not described in 'pstate_funcs' Cc: Srinivas Pandruvada Cc: Len Brown Cc: Dirk Brandewie Suggested-by: "Rafael J. Wysocki" Signed-off-by: Lee Jones --- drivers/cpufreq/intel_pstate.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 44c7b4677675d..3960f971fdfb3 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -275,6 +275,8 @@ static struct cpudata **all_cpu_data; * @get_min: Callback to get minimum P state * @get_turbo: Callback to get turbo P state * @get_scaling: Callback to get frequency scaling factor + * @get_aperf_mperf_shift: Callback to get the APERF vs MPERF frequency + * difference * @get_val: Callback to convert P state to actual MSR write value * @get_vid: Callback to get VID data for Atom platforms * From patchwork Wed Jul 15 08:26:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235564 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412557ilg; Wed, 15 Jul 2020 01:27:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+CnUiYzpjdLW94+vpvGec+UF3X1s5djimuLlc/AXUt8P4HoMwW4xhQzjEsezt5HhadIl7 X-Received: by 2002:a17:906:492:: with SMTP id f18mr8183235eja.279.1594801629082; Wed, 15 Jul 2020 01:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801629; cv=none; d=google.com; s=arc-20160816; b=L8K9yOWCmlfqyWp/b+xz1hK5s+t7dkwb/TsTuU4xQDsgiqDfpAJ2k3ExWjpiIBEr6q GvEMzVZJ7zYO3udGXYixFlQQqJguUOSoDN6J4LkpBhl8C4RGu9YKgd0POArNGM/qUZnG WtjE9aHtg7bLUHB8/YvcnokUwxH2AIKoqIHpNRCdIt3XmzrQ+EeOb5wygAitXU8cFaCe 0dLw0VBJR/hujSi3SWqkrPPvOG2OQ3Cs1Mm3j4UGn9bjX+zL9WHKJkz++3hszNVVzJRy jWpZEgs94YGMT3H2Ibtc8kxYccDGQIgwdNjFK8mcWmlhWmYWoFiaYmahagHRuADUPhzV HmiQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I9K0sP4k999M7LgtJ1hbosTLECoGAC+DHglKiGxOGJ0=; b=1IDaW6tKAv443Pjtbs7AzmUoyrl0LZMg0Kj0w/xATuJH7/09ZT4EhVCXjhw0PRjxzL aEAL5+fGvvuK1knlrVKCq1RvCFzj9S7mDy2HdB/5YvCiWdaITmKjA4aAycdofMZ3E2Kb ZYHh7/pbBmTvP3Ee55JkYUzlVaUp1Q3G22M2aCc3mX8hB4aM0CXHte2JdeYbxRTiZvU6 hvPMWEQIRpFSmT9dKSZr/75gkoHc3hBL/2lvttO3xfnU2EBQUmpi2f8+UmwgfumrzIp0 3jDTQ6UG79rjW7nSyhJ65X4SkCwABJIGQFIe7i/ONNJjS7YBoJQjkw2S/Zk7xivoe5n7 f4JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jbH8taSV; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si818166ejv.385.2020.07.15.01.27.08; Wed, 15 Jul 2020 01:27:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jbH8taSV; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729652AbgGOI1E (ORCPT + 10 others); Wed, 15 Jul 2020 04:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729932AbgGOI04 (ORCPT ); Wed, 15 Jul 2020 04:26:56 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8681C08C5C1 for ; Wed, 15 Jul 2020 01:26:55 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id a6so2966648wmm.0 for ; Wed, 15 Jul 2020 01:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I9K0sP4k999M7LgtJ1hbosTLECoGAC+DHglKiGxOGJ0=; b=jbH8taSV1R0R0HA1uoMe9Xx/Wt4K2Uyeqr/sfT7vIKbeXYYPFVmYIBVvgtpcsafHLG rL9xG7X3IBgk+gEIVfF/ZgovOEM6oCc06NYJf2yafwTpZpRohRlMIt7UKkYneqnjDzf9 Q+G9e1TXvwRMMxzsX5PbQPcCfgxEO+7JzBHU7TuqIR+Rd5ooXv1DcoqDaTO8u3qEU4Ys IY/PoPKS4GTCsT4uNiHV6kSR5eUvMArOVE7EOoW9TPEGls+Bzpml1UbhrKSY7dfON8y5 3AE3hMZc830fDz2wNUfDbX2jhKzGlaBP4pX0lFpHa1xt/hCKDU3eDUMdRcJ5eTpmt5al +Uiw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=I9K0sP4k999M7LgtJ1hbosTLECoGAC+DHglKiGxOGJ0=; b=BkIVRGuQdgKRzGgThw9Fpg+XLTbPmw+bqerXCcxCUWe0ht48TYObqa4jWGe26+BXx2 iGnspEkvo8ugQGZhUiOpjdshTKkmyKoHul4DrcXkci9XNE5ab8OHNLnY/I5BSw603U0k vlmVJeK9oxpftWUcfyqBbp23OybdL0Zr8pnErbuDeqjFNt380kBUqQ3vVHUC7am6PGxz Ii6suvm2HKQ6em7h7495S0NEoqy69iRbUGEF9csUSQZzeAnztEOqs1bvQZ61yOQazmMn +eSQzI0S3VBd49dzppb/8hu9YbuxRzNPn2dwDPbZqROsAX3xy6ud/pFpOiIKT/Ah7H3P Vx6A== X-Gm-Message-State: AOAM533dxkAidiCSoKwbyTD+SAoBr2qbTIcfm5/wx/YICh8o6ulneYXJ lElWzgGi4GpszNuVqSDGkhMOFg== X-Received: by 2002:a1c:2485:: with SMTP id k127mr7281164wmk.138.1594801614566; Wed, 15 Jul 2020 01:26:54 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:53 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Jacob Shin Subject: [PATCH v2 13/13] cpufreq: amd_freq_sensitivity: Mark sometimes used ID structs as __maybe_unused Date: Wed, 15 Jul 2020 09:26:34 +0100 Message-Id: <20200715082634.3024816-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org ot used when MODULE is not defined. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/amd_freq_sensitivity.c:147:32: warning: ‘amd_freq_sensitivity_ids’ defined but not used [-Wunused-const-variable=] 147 | static const struct x86_cpu_id amd_freq_sensitivity_ids[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ Cc: Jacob Shin Signed-off-by: Lee Jones --- drivers/cpufreq/amd_freq_sensitivity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/cpufreq/amd_freq_sensitivity.c b/drivers/cpufreq/amd_freq_sensitivity.c index f7c4206d4c90b..d0b10baf039ab 100644 --- a/drivers/cpufreq/amd_freq_sensitivity.c +++ b/drivers/cpufreq/amd_freq_sensitivity.c @@ -144,7 +144,7 @@ static void __exit amd_freq_sensitivity_exit(void) } module_exit(amd_freq_sensitivity_exit); -static const struct x86_cpu_id amd_freq_sensitivity_ids[] = { +static const struct x86_cpu_id __maybe_unused amd_freq_sensitivity_ids[] = { X86_MATCH_FEATURE(X86_FEATURE_PROC_FEEDBACK, NULL), {} };