* [PATCH 0/5] ARM: prima2: a couple of minor fixes
@ 2014-02-18 6:46 Barry Song
2014-02-18 6:46 ` [PATCH 1/5] ARM: prima2: l2x0: fix checkpatch issues Barry Song
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Barry Song @ 2014-02-18 6:46 UTC (permalink / raw)
To: linux-arm-kernel
From: Barry Song <Baohua.Song@csr.com>
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(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/5] ARM: prima2: l2x0: fix checkpatch issues
2014-02-18 6:46 [PATCH 0/5] ARM: prima2: a couple of minor fixes Barry Song
@ 2014-02-18 6:46 ` Barry Song
2014-02-18 6:46 ` [PATCH 2/5] ARM: prima2: platsmp: " Barry Song
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Barry Song @ 2014-02-18 6:46 UTC (permalink / raw)
To: linux-arm-kernel
From: Barry Song <Baohua.Song@csr.com>
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 = {
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
arch/arm/mach-prima2/l2x0.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-prima2/l2x0.c b/arch/arm/mach-prima2/l2x0.c
index cbcbe9c..c710253 100644
--- a/arch/arm/mach-prima2/l2x0.c
+++ b/arch/arm/mach-prima2/l2x0.c
@@ -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, },
{},
--
1.7.5.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/5] ARM: prima2: platsmp: fix checkpatch issues
2014-02-18 6:46 [PATCH 0/5] ARM: prima2: a couple of minor fixes Barry Song
2014-02-18 6:46 ` [PATCH 1/5] ARM: prima2: l2x0: fix checkpatch issues Barry Song
@ 2014-02-18 6:46 ` Barry Song
2014-02-18 6:46 ` [PATCH 3/5] ARM: prima2: common: " Barry Song
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Barry Song @ 2014-02-18 6:46 UTC (permalink / raw)
To: linux-arm-kernel
From: Barry Song <Baohua.Song@csr.com>
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,$
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
arch/arm/mach-prima2/platsmp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-prima2/platsmp.c b/arch/arm/mach-prima2/platsmp.c
index e358b07..335c12e 100644
--- a/arch/arm/mach-prima2/platsmp.c
+++ b/arch/arm/mach-prima2/platsmp.c
@@ -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
--
1.7.5.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/5] ARM: prima2: common: fix checkpatch issues
2014-02-18 6:46 [PATCH 0/5] ARM: prima2: a couple of minor fixes Barry Song
2014-02-18 6:46 ` [PATCH 1/5] ARM: prima2: l2x0: fix checkpatch issues Barry Song
2014-02-18 6:46 ` [PATCH 2/5] ARM: prima2: platsmp: " Barry Song
@ 2014-02-18 6:46 ` Barry Song
2014-02-18 6:46 ` [PATCH 4/5] ARM: prima2: rtciobrg: fix the typo about license Barry Song
2014-02-18 6:46 ` [PATCH 5/5] ARM: prima2: staticize sirfsoc_init_late function Barry Song
4 siblings, 0 replies; 6+ messages in thread
From: Barry Song @ 2014-02-18 6:46 UTC (permalink / raw)
To: linux-arm-kernel
From: Barry Song <Baohua.Song@csr.com>
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 = {
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
arch/arm/mach-prima2/common.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c
index d49aff7..6926dbc 100644
--- a/arch/arm/mach-prima2/common.c
+++ b/arch/arm/mach-prima2/common.c
@@ -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
};
--
1.7.5.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 4/5] ARM: prima2: rtciobrg: fix the typo about license
2014-02-18 6:46 [PATCH 0/5] ARM: prima2: a couple of minor fixes Barry Song
` (2 preceding siblings ...)
2014-02-18 6:46 ` [PATCH 3/5] ARM: prima2: common: " Barry Song
@ 2014-02-18 6:46 ` Barry Song
2014-02-18 6:46 ` [PATCH 5/5] ARM: prima2: staticize sirfsoc_init_late function Barry Song
4 siblings, 0 replies; 6+ messages in thread
From: Barry Song @ 2014-02-18 6:46 UTC (permalink / raw)
To: linux-arm-kernel
From: Barry Song <Baohua.Song@csr.com>
we are marking GPL v2 in head comments, but MODULE_LICENSE is declaring GPL.
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
arch/arm/mach-prima2/rtciobrg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-prima2/rtciobrg.c b/arch/arm/mach-prima2/rtciobrg.c
index 9f2da2e..a17c88b 100644
--- a/arch/arm/mach-prima2/rtciobrg.c
+++ b/arch/arm/mach-prima2/rtciobrg.c
@@ -137,4 +137,4 @@ postcore_initcall(sirfsoc_rtciobrg_init);
MODULE_AUTHOR("Zhiwu Song <zhiwu.song@csr.com>, "
"Barry Song <baohua.song@csr.com>");
MODULE_DESCRIPTION("CSR SiRFprimaII rtc io bridge");
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("GPL v2");
--
1.7.5.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 5/5] ARM: prima2: staticize sirfsoc_init_late function
2014-02-18 6:46 [PATCH 0/5] ARM: prima2: a couple of minor fixes Barry Song
` (3 preceding siblings ...)
2014-02-18 6:46 ` [PATCH 4/5] ARM: prima2: rtciobrg: fix the typo about license Barry Song
@ 2014-02-18 6:46 ` Barry Song
4 siblings, 0 replies; 6+ messages in thread
From: Barry Song @ 2014-02-18 6:46 UTC (permalink / raw)
To: linux-arm-kernel
From: Barry Song <Baohua.Song@csr.com>
sirfsoc_init_late() is a local function not an extern interface to anyone.
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
arch/arm/mach-prima2/common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c
index 6926dbc..3b8865a 100644
--- a/arch/arm/mach-prima2/common.c
+++ b/arch/arm/mach-prima2/common.c
@@ -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();
}
--
1.7.5.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-02-18 6:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-18 6:46 [PATCH 0/5] ARM: prima2: a couple of minor fixes Barry Song
2014-02-18 6:46 ` [PATCH 1/5] ARM: prima2: l2x0: fix checkpatch issues Barry Song
2014-02-18 6:46 ` [PATCH 2/5] ARM: prima2: platsmp: " Barry Song
2014-02-18 6:46 ` [PATCH 3/5] ARM: prima2: common: " Barry Song
2014-02-18 6:46 ` [PATCH 4/5] ARM: prima2: rtciobrg: fix the typo about license Barry Song
2014-02-18 6:46 ` [PATCH 5/5] ARM: prima2: staticize sirfsoc_init_late function Barry Song
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).