cpufreq: acpi-cpufreq: Mark sometimes used ID structs as __maybe_unused
authorLee Jones <lee.jones@linaro.org>
Wed, 15 Jul 2020 08:26:30 +0000 (09:26 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 15 Jul 2020 13:17:06 +0000 (15:17 +0200)
commita7b909376d3994ffb983a4037dd12689159fd4fb
treeaf3e260cb5e82fc6712cfee37007f9f7e6d78c92
parente1711f296a2de54a6dd5bde4d92bb903dfaed1fb
cpufreq: acpi-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/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[] = {
 | ^~~~~~~~~~~~~~~~~~~~

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>
drivers/cpufreq/acpi-cpufreq.c