Skip to contentSkip to conversation

x86/acpi: fix incorrect placement of __initdata tag

PATCH New Bartlomiej Zolnierkiewicz 1 participant 1 message Sep 30, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/acpi: fix incorrect placement of __initdata tag

__initdata tag should not be placed between "struct" and "resource" because it prevents the variable from being placed in the intended .init.data section. Fix it.

---
v2:
- fixed patch description

 arch/x86/kernel/acpi/boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/acpi/boot.c +1 -1
index 1f7c074..6c0b43b 100644
@@ -695,7 +695,7 @@ static int __init acpi_parse_sbf(struct acpi_table_header *table)
 #ifdef CONFIG_HPET_TIMER
 #include <asm/hpet.h>
 
-static struct __initdata resource *hpet_res;
+static struct resource *hpet_res __initdata;
 
 static int __init acpi_parse_hpet(struct acpi_table_header *table)
 {
Signature · 1 line
1.8.2.3