Message ID | 20200715082634.3024816-12-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=0bse=A2=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0C110138C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 15 Jul 2020 08:46:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D935020657 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 15 Jul 2020 08:46:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gjwYZ3lc"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MCdybl3G" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D935020657 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=c2m6eDpmoefqx7bPSPApw31JE0QoAUevA/MNUjllgxM=; b=gjwYZ3lc4V0c28yjx1nxGowNM 9B0Mh3WzgmkOTCz2WwrlOR0aSAbZXzG2n1ykPS4AiKjVMZcjDX/aa94QEH8n6ykXIAoll1Pk6q5wN nIi7WkZ2oVPpdyLVtrMQ2T39EMm+DJgQdYyVjmw/QFzwDNwPFG2D/zLbLnPyUAriWqkTtbVLAuHqw Szfq3CvBxKvFlfm/ONDEdEjnVsII5TJMyY2ZY4Wxi2r0J/Ztvea1SCmJO7rreJfkp+ND3tjRyfV76 oZMYwSd4ohQRbQbUyGI+1G4d1uaD5Nia4UYPoluYXKLSLr4et29yzNA0AJDbaaIPfhIZjVK2/9mOF t3frMk/MQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvcmG-0004At-Mu; Wed, 15 Jul 2020 08:28:32 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvckf-0003Nr-HG for linux-arm-kernel@lists.infradead.org; Wed, 15 Jul 2020 08:26:57 +0000 Received: by mail-wr1-x444.google.com with SMTP id a6so1487847wrm.4 for <linux-arm-kernel@lists.infradead.org>; 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=sDW3ex1eMuPx3X/Vkjok2/dTvCMvefS58WMM/1uiMHZkuMTFWOT1sUnxogl6F98QB7 VpnaZQXDEX3vbYJn5X9S3R8B6Fj8xx3jOKoCE7iWOQY5S654mYrtziMhyUotCe9TK0B3 XtiQwEde9cqSnqZIt1RfVimNSji6hxFREBIZwMIeuY47OrICU/G2LXpeQQl4fRqwfVZQ 3utYsDyRZipFzXkwLR8+qiL4cyXT7hubPOwTlCBqqMsgC3n9Iox7F3M9qh9hu01MMD7E o8DBgtsJgF2HsmYhW2u/vQSTGXzc9GTWCMuB62y4szDguQcZUUviasuzFWa2hvvj1fv9 OlAQ== X-Gm-Message-State: AOAM533Q0uDpan0yniYugrGnECiG6nozxpJgr2Stf2lpU8D9jP0zX63h ob7oYyVLDzruuuJkcCVPiq9N7JJy0OA= X-Google-Smtp-Source: ABdhPJxlua+SYa5MMQ296pyJ156z28xC7KELszStrbytWumw2AI+ZT38OsX9kXDGi5NnDOmPRNNLBQ== 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 <lee.jones@linaro.org> To: rjw@rjwysocki.net, viresh.kumar@linaro.org 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200715_042653_673808_677E62A2 X-CRM114-Status: GOOD ( 14.07 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Nagananda Chumbalkar <nagananda.chumbalkar@hp.com>, Lee Jones <lee.jones@linaro.org>, linux-arm-kernel@lists.infradead.org, Matthew Garrett <mjg@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Rid W=1 warnings in CPUFreq
|
expand
|
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, }, {},
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 <mjg@redhat.com> Cc: Nagananda Chumbalkar <nagananda.chumbalkar@hp.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/cpufreq/pcc-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)