ARM: prima2: a couple of minor fixes
Subsystems (2)
cover ARM: prima2: a couple of minor fixes
From: Barry Song <[email protected]>
this patchset includes a couple of minor fixes about checkpatch issues, typo and staticizing function.
Barry Song (5):
ARM: prima2: l2x0: fix checkpatch issues
ARM: prima2: platsmp: fix checkpatch issues
ARM: prima2: common: fix checkpatch issues
ARM: prima2: rtciobrg: fix the typo about license
ARM: prima2: staticize sirfsoc_init_late function
arch/arm/mach-prima2/common.c | 8 ++++---- arch/arm/mach-prima2/l2x0.c | 9 ++++----- arch/arm/mach-prima2/platsmp.c | 6 +++--- arch/arm/mach-prima2/rtciobrg.c | 2 +- 4 files changed, 12 insertions(+), 13 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/5 ARM: prima2: l2x0: fix checkpatch issues
From: Barry Song <[email protected]>
Fix the below checkpatch issues:
ERROR: open brace '{' following struct go on the same line 15: FILE: l2x0.c:15:
+struct l2x0_aux
+{
ERROR: Use of __initconst requires a separate use of const 20: FILE: l2x0.c:20:
+static struct l2x0_aux prima2_l2x0_aux __initconst = {
ERROR: Use of __initconst requires a separate use of const 25: FILE: l2x0.c:25:
+static struct l2x0_aux marco_l2x0_aux __initconst = {
ERROR: Use of __initconst requires a separate use of const 31: FILE: l2x0.c:31:
+static struct of_device_id sirf_l2x0_ids[] __initconst = {
--- arch/arm/mach-prima2/l2x0.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
arch/arm/mach-prima2/l2x0.c +4 -5
@@ -11,24 +11,23 @@#include <linux/of.h> #include <asm/hardware/cache-l2x0.h> -struct l2x0_aux -{ +struct l2x0_aux {u32 val;u32 mask; }; -static struct l2x0_aux prima2_l2x0_aux__initconst = { +static const struct l2x0_aux prima2_l2x0_aux__initconst = { .val =2 <<L2X0_AUX_CTRL_WAY_SIZE_SHIFT , .mask =0 , }; -static struct l2x0_aux marco_l2x0_aux__initconst = { +static const struct l2x0_aux marco_l2x0_aux__initconst = { .val = (2 <<L2X0_AUX_CTRL_WAY_SIZE_SHIFT ) | (1 <<L2X0_AUX_CTRL_ASSOCIATIVITY_SHIFT ), .mask =L2X0_AUX_CTRL_MASK , }; -static struct of_device_id sirf_l2x0_ids[]__initconst = { +static const struct of_device_id sirf_l2x0_ids[]__initconst = { { .compatible ="sirf,prima2-pl310-cache" , .data = &prima2_l2x0_aux, }, { .compatible ="sirf,marco-pl310-cache" , .data = &marco_l2x0_aux, }, {},
Signature · 1 line
1.7.5.4
PATCH 2/5 ARM: prima2: platsmp: fix checkpatch issues
In reply to Barry SongFrom: Barry Song <[email protected]>
fix the below checkpatch issues:
ERROR: code indent should use tabs where possible
141: FILE: platsmp.c:141:
+ .smp_prepare_cpus = sirfsoc_smp_prepare_cpus,$
WARNING: please, no spaces at the start of a line
141: FILE: platsmp.c:141:
+ .smp_prepare_cpus = sirfsoc_smp_prepare_cpus,$
ERROR: code indent should use tabs where possible
142: FILE: platsmp.c:142:
+ .smp_secondary_init = sirfsoc_secondary_init,$
WARNING: please, no spaces at the start of a line
142: FILE: platsmp.c:142:
+ .smp_secondary_init = sirfsoc_secondary_init,$
ERROR: code indent should use tabs where possible
143: FILE: platsmp.c:143:
+ .smp_boot_secondary = sirfsoc_boot_secondary,$
WARNING: please, no spaces at the start of a line
143: FILE: platsmp.c:143:
+ .smp_boot_secondary = sirfsoc_boot_secondary,$
--- arch/arm/mach-prima2/platsmp.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-prima2/platsmp.c +3 -3
@@ -138,9 +138,9 @@ static void __init sirfsoc_smp_prepare_cpus(unsigned int max_cpus) }struct smp_operations sirfsoc_smp_ops__initdata = { - .smp_prepare_cpus = sirfsoc_smp_prepare_cpus, - .smp_secondary_init = sirfsoc_secondary_init, - .smp_boot_secondary = sirfsoc_boot_secondary, + .smp_prepare_cpus = sirfsoc_smp_prepare_cpus, + .smp_secondary_init = sirfsoc_secondary_init, + .smp_boot_secondary = sirfsoc_boot_secondary, #ifdef CONFIG_HOTPLUG_CPU .cpu_die = sirfsoc_cpu_die, #endif
Signature · 1 line
1.7.5.4
PATCH 3/5 ARM: prima2: common: fix checkpatch issues
In reply to Barry SongFrom: Barry Song <[email protected]>
fix the below checkpatch issues:
ERROR: Use of const init definition must use __initconst 30: FILE: common.c:30:
+static const char *atlas6_dt_match[] __initdata = {
ERROR: Use of const init definition must use __initconst 45: FILE: common.c:45:
+static const char *prima2_dt_match[] __initdata = {
ERROR: Use of const init definition must use __initconst 61: FILE: common.c:61:
+static const char *marco_dt_match[] __initdata = {
--- arch/arm/mach-prima2/common.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-prima2/common.c +3 -3
@@ -27,7 +27,7 @@ static __init void sirfsoc_map_io(void) }#ifdef CONFIG_ARCH_ATLAS6 -static const char *atlas6_dt_match[]__initdata = { +static const char *atlas6_dt_match[]__initconst = {"sirf,atlas6" ,NULL };
@@ -42,7 +42,7 @@ MACHINE_END#endif #ifdef CONFIG_ARCH_PRIMA2 -static const char *prima2_dt_match[]__initdata = { +static const char *prima2_dt_match[]__initconst = {"sirf,prima2" ,NULL };
@@ -58,7 +58,7 @@ MACHINE_END#endif #ifdef CONFIG_ARCH_MARCO -static const char *marco_dt_match[]__initdata = { +static const char *marco_dt_match[]__initconst = {"sirf,marco" ,NULL };
Signature · 1 line
1.7.5.4
PATCH 4/5 ARM: prima2: rtciobrg: fix the typo about license
In reply to Barry SongFrom: Barry Song <[email protected]>
we are marking GPL v2 in head comments, but MODULE_LICENSE is declaring GPL.
--- arch/arm/mach-prima2/rtciobrg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-prima2/rtciobrg.c +1 -1
@@ -137,4 +137,4 @@ postcore_initcall(sirfsoc_rtciobrg_init);MODULE_AUTHOR ("Zhiwu Song <[email protected]>, " "Barry Song <[email protected]>" );MODULE_DESCRIPTION ("CSR SiRFprimaII rtc io bridge" ); -MODULE_LICENSE ("GPL" ); +MODULE_LICENSE ("GPL v2" );
Signature · 1 line
1.7.5.4
PATCH 5/5 ARM: prima2: staticize sirfsoc_init_late function
In reply to Barry SongFrom: Barry Song <[email protected]>
sirfsoc_init_late() is a local function not an extern interface to anyone.
--- arch/arm/mach-prima2/common.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-prima2/common.c +1 -1
@@ -15,7 +15,7 @@#include <linux/of_platform.h> #include "common.h" -void __init sirfsoc_init_late (void ) +static void __init sirfsoc_init_late (void ) {sirfsoc_pm_init (); }
Signature · 1 line
1.7.5.4