Skip to content

Commit 8ce344c

Browse files
miniplirafaeljw
authored andcommitted
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 fe7bf10 ("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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 52721d9 commit 8ce344c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/acpi/acpi_processor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ static const struct acpi_device_id processor_device_ids[] = {
485485
{ }
486486
};
487487

488-
static struct acpi_scan_handler __refdata processor_handler = {
488+
static struct acpi_scan_handler processor_handler = {
489489
.ids = processor_device_ids,
490490
.attach = acpi_processor_add,
491491
#ifdef CONFIG_ACPI_HOTPLUG_CPU

drivers/acpi/processor_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static int acpi_cpu_soft_notify(struct notifier_block *nfb,
159159
return NOTIFY_OK;
160160
}
161161

162-
static struct notifier_block __refdata acpi_cpu_notifier = {
162+
static struct notifier_block acpi_cpu_notifier = {
163163
.notifier_call = acpi_cpu_soft_notify,
164164
};
165165

0 commit comments

Comments
 (0)