summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/pcc-cpufreq.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-07-15 09:26:32 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-07-15 15:17:06 +0200
commit3098174990f51671c0a1e660527ac1443e23ed0f (patch)
treeca86fff5352202fc35d292e6ffaeefc2bf722d22 /drivers/cpufreq/pcc-cpufreq.c
parent638b509795a18c88ce391fb94d9191f1abcfe88d (diff)
downloadlinux-3098174990f51671c0a1e660527ac1443e23ed0f.tar.gz
linux-3098174990f51671c0a1e660527ac1443e23ed0f.tar.bz2
linux-3098174990f51671c0a1e660527ac1443e23ed0f.zip
cpufreq: pcc-cpufreq: Mark sometimes used ID structs as __maybe_unused
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[] = { | ^~~~~~~~~~~~~~~~~~~~ Signed-off-by: Lee Jones <lee.jones@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/pcc-cpufreq.c')
-rw-r--r--drivers/cpufreq/pcc-cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c
index 5789fe7a94bd..9f3fc7a073d0 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, },
{},