Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / processor: remove leftover __refdata annotations

The processor_handler structure does not reference any __init / __exit
code or data. Therefore the __refdata annotation is not needed. It used
to be prior to commit fe7bf106ebc2 ("acpi: delete __cpuinit usage from
all acpi files") due to the __cpuinit annotation of acpi_processor_add().
But with that commit in place that requirement has gone.

The same is true for the acpi_cpu_notifier notifier block.
acpi_cpu_soft_notify() used to be marked __cpuinit but lost its
annotation in the above mentioned commit as well. Therefore the __refdata
annotation isn't needed there either.

Just drop the unneded __refdata annotations to be able to catch future
section mismatches.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Mathias Krause and committed by
Rafael J. Wysocki
8ce344c6 52721d9d

+2 -2
+1 -1
drivers/acpi/acpi_processor.c
··· 485 485 { } 486 486 }; 487 487 488 - static struct acpi_scan_handler __refdata processor_handler = { 488 + static struct acpi_scan_handler processor_handler = { 489 489 .ids = processor_device_ids, 490 490 .attach = acpi_processor_add, 491 491 #ifdef CONFIG_ACPI_HOTPLUG_CPU
+1 -1
drivers/acpi/processor_driver.c
··· 159 159 return NOTIFY_OK; 160 160 } 161 161 162 - static struct notifier_block __refdata acpi_cpu_notifier = { 162 + static struct notifier_block acpi_cpu_notifier = { 163 163 .notifier_call = acpi_cpu_soft_notify, 164 164 }; 165 165