Skip to contentSkip to conversation

x86/geode: fix incorrect placement of __initdata tag

PATCH Superseded Bartlomiej Zolnierkiewicz 3 participants 4 messages Sep 30, 2013 – Oct 1, 2013

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/geode: fix incorrect placement of __initdata tag

__initdata tag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.

---
 arch/x86/platform/geode/alix.c    | 2 +-
 arch/x86/platform/geode/geos.c    | 2 +-
 arch/x86/platform/geode/net5501.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/platform/geode/alix.c +1 -1
index 90e23e7..76b6632 100644
@@ -98,7 +98,7 @@ static struct platform_device alix_leds_dev = {
 	.dev.platform_data = &alix_leds_data,
 };
 
-static struct __initdata platform_device *alix_devs[] = {
+static struct platform_device *alix_devs[] __initdata = {
 	&alix_buttons_dev,
 	&alix_leds_dev,
 };
arch/x86/platform/geode/geos.c +1 -1
index c2e6d53..aa733fb 100644
@@ -87,7 +87,7 @@ static struct platform_device geos_leds_dev = {
 	.dev.platform_data = &geos_leds_data,
 };
 
-static struct __initdata platform_device *geos_devs[] = {
+static struct platform_device *geos_devs[] __initdata = {
 	&geos_buttons_dev,
 	&geos_leds_dev,
 };
arch/x86/platform/geode/net5501.c +1 -1
index 646e3b5..927e38c 100644
@@ -78,7 +78,7 @@ static struct platform_device net5501_leds_dev = {
 	.dev.platform_data = &net5501_leds_data,
 };
 
-static struct __initdata platform_device *net5501_devs[] = {
+static struct platform_device *net5501_devs[] __initdata = {
 	&net5501_buttons_dev,
 	&net5501_leds_dev,
 };
Signature · 1 line
1.8.2.3
#1 lore raw
Quoted 10 lines · Bartlomiej Zolnierkiewicz

__initdata tag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.

---
 arch/x86/platform/geode/alix.c    | 2 +-
 arch/x86/platform/geode/geos.c    | 2 +-
 arch/x86/platform/geode/net5501.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Does this fix have any runtime effects, i.e. should we queue this up as an urgent fix for v3.12, or does tip:x86/platform with a v3.13 merge suffice?

Thanks,

ingo

#2 lore raw

Hi,

Quoted 14 lines · Ingo Molnar
Quoted 10 lines · Bartlomiej Zolnierkiewicz

__initdata tag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.

---
 arch/x86/platform/geode/alix.c    | 2 +-
 arch/x86/platform/geode/geos.c    | 2 +-
 arch/x86/platform/geode/net5501.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Quoted 2 lines

Does this fix have any runtime effects, i.e. should we queue this up as an urgent fix for v3.12, or does tip:x86/platform with a v3.13 merge suffice?

It has runtime effects as the data now goes into .init.data which was not a case previously. However it is not an urgent fix so I think that queuing it for v3.13 is a better option. Thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

#3 lore raw

[tip:x86/platform] x86/geode: Fix incorrect placement of __initdata tag

In reply to Bartlomiej Zolnierkiewicz
x86/geode: Fix incorrect placement of __initdata tag
Commit-ID:  a6d30e0fffb32ab9e48fa7fc8f463805d5b0bddb
Gitweb:     http://git.kernel.org/tip/a6d30e0fffb32ab9e48fa7fc8f463805d5b0bddb
Author:     Bartlomiej Zolnierkiewicz <[email protected]>
AuthorDate: Mon, 30 Sep 2013 15:21:15 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 1 Oct 2013 13:21:27 +0200

x86/geode: Fix incorrect placement of __initdata tag

__initdata tag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.

---
 arch/x86/platform/geode/alix.c    | 2 +-
 arch/x86/platform/geode/geos.c    | 2 +-
 arch/x86/platform/geode/net5501.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/platform/geode/alix.c +1 -1
index 90e23e7..76b6632 100644
@@ -98,7 +98,7 @@ static struct platform_device alix_leds_dev = {
 	.dev.platform_data = &alix_leds_data,
 };
 
-static struct __initdata platform_device *alix_devs[] = {
+static struct platform_device *alix_devs[] __initdata = {
 	&alix_buttons_dev,
 	&alix_leds_dev,
 };
arch/x86/platform/geode/geos.c +1 -1
index c2e6d53..aa733fb 100644
@@ -87,7 +87,7 @@ static struct platform_device geos_leds_dev = {
 	.dev.platform_data = &geos_leds_data,
 };
 
-static struct __initdata platform_device *geos_devs[] = {
+static struct platform_device *geos_devs[] __initdata = {
 	&geos_buttons_dev,
 	&geos_leds_dev,
 };
arch/x86/platform/geode/net5501.c +1 -1
index 646e3b5..927e38c 100644
@@ -78,7 +78,7 @@ static struct platform_device net5501_leds_dev = {
 	.dev.platform_data = &net5501_leds_data,
 };
 
-static struct __initdata platform_device *net5501_devs[] = {
+static struct platform_device *net5501_devs[] __initdata = {
 	&net5501_buttons_dev,
 	&net5501_leds_dev,
 };