Skip to content

Commit 3098174

Browse files
Lee Jonesrafaeljw
authored andcommitted
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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 638b509 commit 3098174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/pcc-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static void __exit pcc_cpufreq_exit(void)
616616
free_percpu(pcc_cpu_info);
617617
}
618618

619-
static const struct acpi_device_id processor_device_ids[] = {
619+
static const struct acpi_device_id __maybe_unused processor_device_ids[] = {
620620
{ACPI_PROCESSOR_OBJECT_HID, },
621621
{ACPI_PROCESSOR_DEVICE_HID, },
622622
{},

0 commit comments

Comments
 (0)