x86/geode: fix incorrect placement of __initdata tag
Subsystems (2)
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
@@ -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
@@ -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
@@ -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
Quoted 10 lines · Bartlomiej Zolnierkiewicz
__initdatatag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- 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
Hi,
Quoted 14 lines · Ingo Molnar
Quoted 10 lines · Bartlomiej Zolnierkiewicz
__initdatatag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- 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
tip-bot for Bartlomiej Zolnierkiewicz
merge bot[tip:x86/platform] x86/geode: Fix incorrect placement of __initdata tag
In reply to Bartlomiej Zolnierkiewiczx86/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
@@ -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
@@ -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
@@ -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, };