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, }, {},