Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
On 21/03/15 16:45, Stefan Agner wrote: > The const declaration for char* is actually duplicated, however > the array of strings is currently not constant. However, typically > the dt_compat array is declared as const char *const. Follow > that convention and also add the __initconst macro for constant > initialization data. > > Signed-off-by: Stefan Agner Applied to platform/next, thanks -- Florian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
Hello Stefan, On Sun, Mar 22, 2015 at 12:45:35AM +0100, Stefan Agner wrote: > The const declaration for char* is actually duplicated, however > the array of strings is currently not constant. However, typically > the dt_compat array is declared as const char *const. Follow > that convention and also add the __initconst macro for constant > initialization data. > > Signed-off-by: Stefan Agner Acked-by: Uwe Kleine-König Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
On 21/03/15 16:45, Stefan Agner wrote: The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Signed-off-by: Stefan Agner ste...@agner.ch Applied to platform/next, thanks -- Florian -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
Hello Stefan, On Sun, Mar 22, 2015 at 12:45:35AM +0100, Stefan Agner wrote: The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Signed-off-by: Stefan Agner ste...@agner.ch Acked-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
On 3/23/2015 10:18 PM, Scott Branden wrote: > Hi Stefan, > > On 15-03-21 04:45 PM, Stefan Agner wrote: >> The const declaration for char* is actually duplicated, however >> the array of strings is currently not constant. However, typically >> the dt_compat array is declared as const char *const. Follow >> that convention and also add the __initconst macro for constant >> initialization data. >> > Acked-by: Scott Branden >> Signed-off-by: Stefan Agner >> --- >> This was uncovered by a LLVM/clang warning: >> arch/arm/mach-bcm/bcm_cygnus.c:16:19: warning: duplicate 'const' >> declaration >> specifier [-Wduplicate-decl-specifier] >> static const char const *bcm_cygnus_dt_compat[] = { >>^~ >> 1 warning generated. >> >> arch/arm/mach-bcm/bcm_cygnus.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/mach-bcm/bcm_cygnus.c >> b/arch/arm/mach-bcm/bcm_cygnus.c >> index 30dc58b..7ae894c 100644 >> --- a/arch/arm/mach-bcm/bcm_cygnus.c >> +++ b/arch/arm/mach-bcm/bcm_cygnus.c >> @@ -13,7 +13,7 @@ >> >> #include >> >> -static const char const *bcm_cygnus_dt_compat[] = { >> +static const char * const bcm_cygnus_dt_compat[] __initconst = { >> "brcm,cygnus", >> NULL, >> }; >> > Thanks for submitting. We will test this. > > Scott Change looks fine and tested fine on Cygnus BCM958300k board. Thanks! Reviewed-by: Ray Jui Tested-by: Ray Jui -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
Hi Stefan, On 15-03-21 04:45 PM, Stefan Agner wrote: The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Acked-by: Scott Branden Signed-off-by: Stefan Agner --- This was uncovered by a LLVM/clang warning: arch/arm/mach-bcm/bcm_cygnus.c:16:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const char const *bcm_cygnus_dt_compat[] = { ^~ 1 warning generated. arch/arm/mach-bcm/bcm_cygnus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/bcm_cygnus.c b/arch/arm/mach-bcm/bcm_cygnus.c index 30dc58b..7ae894c 100644 --- a/arch/arm/mach-bcm/bcm_cygnus.c +++ b/arch/arm/mach-bcm/bcm_cygnus.c @@ -13,7 +13,7 @@ #include -static const char const *bcm_cygnus_dt_compat[] = { +static const char * const bcm_cygnus_dt_compat[] __initconst = { "brcm,cygnus", NULL, }; Thanks for submitting. We will test this. Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
Hi Stefan, On 15-03-21 04:45 PM, Stefan Agner wrote: The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Acked-by: Scott Branden sbran...@broadcom.com Signed-off-by: Stefan Agner ste...@agner.ch --- This was uncovered by a LLVM/clang warning: arch/arm/mach-bcm/bcm_cygnus.c:16:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const char const *bcm_cygnus_dt_compat[] = { ^~ 1 warning generated. arch/arm/mach-bcm/bcm_cygnus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/bcm_cygnus.c b/arch/arm/mach-bcm/bcm_cygnus.c index 30dc58b..7ae894c 100644 --- a/arch/arm/mach-bcm/bcm_cygnus.c +++ b/arch/arm/mach-bcm/bcm_cygnus.c @@ -13,7 +13,7 @@ #include asm/mach/arch.h -static const char const *bcm_cygnus_dt_compat[] = { +static const char * const bcm_cygnus_dt_compat[] __initconst = { brcm,cygnus, NULL, }; Thanks for submitting. We will test this. Scott -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
On 3/23/2015 10:18 PM, Scott Branden wrote: Hi Stefan, On 15-03-21 04:45 PM, Stefan Agner wrote: The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Acked-by: Scott Branden sbran...@broadcom.com Signed-off-by: Stefan Agner ste...@agner.ch --- This was uncovered by a LLVM/clang warning: arch/arm/mach-bcm/bcm_cygnus.c:16:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const char const *bcm_cygnus_dt_compat[] = { ^~ 1 warning generated. arch/arm/mach-bcm/bcm_cygnus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/bcm_cygnus.c b/arch/arm/mach-bcm/bcm_cygnus.c index 30dc58b..7ae894c 100644 --- a/arch/arm/mach-bcm/bcm_cygnus.c +++ b/arch/arm/mach-bcm/bcm_cygnus.c @@ -13,7 +13,7 @@ #include asm/mach/arch.h -static const char const *bcm_cygnus_dt_compat[] = { +static const char * const bcm_cygnus_dt_compat[] __initconst = { brcm,cygnus, NULL, }; Thanks for submitting. We will test this. Scott Change looks fine and tested fine on Cygnus BCM958300k board. Thanks! Reviewed-by: Ray Jui r...@broadcom.com Tested-by: Ray Jui r...@broadcom.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Signed-off-by: Stefan Agner --- This was uncovered by a LLVM/clang warning: arch/arm/mach-bcm/bcm_cygnus.c:16:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const char const *bcm_cygnus_dt_compat[] = { ^~ 1 warning generated. arch/arm/mach-bcm/bcm_cygnus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/bcm_cygnus.c b/arch/arm/mach-bcm/bcm_cygnus.c index 30dc58b..7ae894c 100644 --- a/arch/arm/mach-bcm/bcm_cygnus.c +++ b/arch/arm/mach-bcm/bcm_cygnus.c @@ -13,7 +13,7 @@ #include -static const char const *bcm_cygnus_dt_compat[] = { +static const char * const bcm_cygnus_dt_compat[] __initconst = { "brcm,cygnus", NULL, }; -- 2.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat
The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Signed-off-by: Stefan Agner ste...@agner.ch --- This was uncovered by a LLVM/clang warning: arch/arm/mach-bcm/bcm_cygnus.c:16:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const char const *bcm_cygnus_dt_compat[] = { ^~ 1 warning generated. arch/arm/mach-bcm/bcm_cygnus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/bcm_cygnus.c b/arch/arm/mach-bcm/bcm_cygnus.c index 30dc58b..7ae894c 100644 --- a/arch/arm/mach-bcm/bcm_cygnus.c +++ b/arch/arm/mach-bcm/bcm_cygnus.c @@ -13,7 +13,7 @@ #include asm/mach/arch.h -static const char const *bcm_cygnus_dt_compat[] = { +static const char * const bcm_cygnus_dt_compat[] __initconst = { brcm,cygnus, NULL, }; -- 2.3.3 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/