* [PATCH] ARM: shmobile: emev2: Use __initconst for const init definition
@ 2013-12-27 3:14 Simon Horman
2014-01-06 8:20 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Simon Horman @ 2013-12-27 3:14 UTC (permalink / raw)
To: linux-arm-kernel
__initconst must be used instead of __initdata for
const init definitions.
This problem was introduced by 3d5de27174955702 ("mach-shmobile: Emma
Mobile EV2 DT support V3") in v3.4-rc7.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/setup-emev2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c
index c8f2a1a..c71d667 100644
--- a/arch/arm/mach-shmobile/setup-emev2.c
+++ b/arch/arm/mach-shmobile/setup-emev2.c
@@ -58,7 +58,7 @@ static void __init emev2_add_standard_devices_dt(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
-static const char *emev2_boards_compat_dt[] __initdata = {
+static const char *emev2_boards_compat_dt[] __initconst = {
"renesas,emev2",
NULL,
};
--
1.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: shmobile: emev2: Use __initconst for const init definition
2013-12-27 3:14 [PATCH] ARM: shmobile: emev2: Use __initconst for const init definition Simon Horman
@ 2014-01-06 8:20 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2014-01-06 8:20 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Dec 27, 2013 at 12:14:08PM +0900, Simon Horman wrote:
> __initconst must be used instead of __initdata for
> const init definitions.
>
> This problem was introduced by 3d5de27174955702 ("mach-shmobile: Emma
> Mobile EV2 DT support V3") in v3.4-rc7.
I have queued this up.
>
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> ---
> arch/arm/mach-shmobile/setup-emev2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c
> index c8f2a1a..c71d667 100644
> --- a/arch/arm/mach-shmobile/setup-emev2.c
> +++ b/arch/arm/mach-shmobile/setup-emev2.c
> @@ -58,7 +58,7 @@ static void __init emev2_add_standard_devices_dt(void)
> of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> }
>
> -static const char *emev2_boards_compat_dt[] __initdata = {
> +static const char *emev2_boards_compat_dt[] __initconst = {
> "renesas,emev2",
> NULL,
> };
> --
> 1.8.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-06 8:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-27 3:14 [PATCH] ARM: shmobile: emev2: Use __initconst for const init definition Simon Horman
2014-01-06 8:20 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).