ARM:vexpress: beautify code, using 'static const' instead of 'const static'
Subsystems (3)
PATCH 1/1 ARM:vexpress: beautify code, using 'static const' instead of 'const static'
better using 'static const' instead of 'const static'
--- arch/arm/mach-vexpress/platsmp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-vexpress/platsmp.c +1 -1
@@ -40,7 +40,7 @@ static struct map_desc vexpress_dt_cortex_a9_scu_map __initdata = {static void *vexpress_dt_cortex_a9_scu_base__initdata ; -const static char *vexpress_dt_cortex_a9_match[]__initconst = { +static const char *vexpress_dt_cortex_a9_match[]__initconst = {"arm,cortex-a5-scu" ,"arm,cortex-a9-scu" ,NULL
Signature · 1 line
1.7.7.6
PATCH 1/1 ARM:vexpress: beautify code, using 'static const' instead of 'const static'
Quoted 13 lines · Chen Gang
better using 'static const' instead of 'const static'
Signed-off-by Chen Gang <[email protected]>--- arch/arm/mach-vexpress/platsmp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-vexpress/platsmp.c +0
-0
arch/arm/mach-vexpress/platsmp.c static struct map_desc vexpress_dt_cortex_a9_scu_map __initdata = { · line 43
Quoted 5 lines
arch/arm/mach-vexpress/platsmp.c +1
-1@@ -40,7 +40,7 @@ static struct map_desc vexpress_dt_cortex_a9_scu_map __initdata = {static void *vexpress_dt_cortex_a9_scu_base__initdata ; -const static char *vexpress_dt_cortex_a9_match[]__initconst = { +static const char *vexpress_dt_cortex_a9_match[]__initconst = {
PATCH 1/1 ARM:vexpress: beautify code, using 'static const' instead of 'const static'
? 2013?03?10? 10:57, Viresh Kumar ??:
Quoted 15 lines · Chen Gang
Quoted 14 lines
Quoted 14 lines
better using 'static const' instead of 'const static'
Signed-off-by Chen Gang <[email protected]>--- arch/arm/mach-vexpress/platsmp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-vexpress/platsmp.c +0
-0@@ -40,7 +40,7 @@ static struct map_desc vexpress_dt_cortex_a9_scu_map __initdata = {
Quoted 7 lines
Quoted 4 lines
arch/arm/mach-vexpress/platsmp.c static struct map_desc vexpress_dt_cortex_a9_scu_map __initdata = { · line 43
Quoted 4 lines
arch/arm/mach-vexpress/platsmp.c +1
-1static void *vexpress_dt_cortex_a9_scu_base__initdata ; -const static char *vexpress_dt_cortex_a9_match[]__initconst = { +static const char *vexpress_dt_cortex_a9_match[]__initconst = {Acked-by Viresh Kumar <[email protected]>
thank you.
:-)
Signature · 3 lines
Chen Gang Asianux Corporation
PATCH 1/1 ARM:vexpress: beautify code, using 'static const' instead of 'const static'
In reply to Chen GangQuoted 12 lines · Chen Gang
better using 'static const' instead of 'const static'
Signed-off-by Chen Gang <[email protected]>--- arch/arm/mach-vexpress/platsmp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-vexpress/platsmp.c +0
-0
arch/arm/mach-vexpress/platsmp.c static struct map_desc vexpress_dt_cortex_a9_scu_map __initdata = { · line 46
Quoted 8 lines
arch/arm/mach-vexpress/platsmp.c +1
-1@@ -40,7 +40,7 @@ static struct map_desc vexpress_dt_cortex_a9_scu_map __initdata = {static void *vexpress_dt_cortex_a9_scu_base__initdata ; -const static char *vexpress_dt_cortex_a9_match[]__initconst = { +static const char *vexpress_dt_cortex_a9_match[]__initconst = {"arm,cortex-a5-scu" ,"arm,cortex-a9-scu" ,NULL
Thanks for spotting this. I will keep this in mind, but I can't promise to take this patch as it goes, because the platsmp.c is likely to change (shrink) in near future. Either way I'll make sure you get due credit :-)
Cheers!
Pawel