[PATCH] ARM: tango: use const and __initconst for smp_operations

Subsystems: arm port, the rest

STALE3905d

3 messages, 3 authors, 2016-02-01 · open the first message on its own page

[PATCH] ARM: tango: use const and __initconst for smp_operations

From: Masahiro Yamada <hidden>
Date: 2016-01-25 11:33:50

This newly added code missed the global fixup by commit 75305275a721
("ARM: use const and __initconst for smp_operations").  So fix it now.

Signed-off-by: Masahiro Yamada <redacted>
---

 arch/arm/mach-tango/platsmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-tango/platsmp.c b/arch/arm/mach-tango/platsmp.c
index a18d5a3..a21f55e 100644
--- a/arch/arm/mach-tango/platsmp.c
+++ b/arch/arm/mach-tango/platsmp.c
@@ -9,7 +9,7 @@ static int tango_boot_secondary(unsigned int cpu, struct task_struct *idle)
 	return 0;
 }
 
-static struct smp_operations tango_smp_ops __initdata = {
+static const struct smp_operations tango_smp_ops __initconst = {
 	.smp_boot_secondary	= tango_boot_secondary,
 };
 
-- 
1.9.1

Re: [PATCH] ARM: tango: use const and __initconst for smp_operations

From: Marc Gonzalez <hidden>
Date: 2016-01-25 12:10:47

On 25/01/2016 12:33, Masahiro Yamada wrote:
This newly added code missed the global fixup by commit 75305275a721
("ARM: use const and __initconst for smp_operations").  So fix it now.

Signed-off-by: Masahiro Yamada <redacted>
---

 arch/arm/mach-tango/platsmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Marc Gonzalez <redacted>

Re: [PATCH] ARM: tango: use const and __initconst for smp_operations

From: Olof Johansson <hidden>
Date: 2016-02-01 20:29:45

On Mon, Jan 25, 2016 at 08:33:42PM +0900, Masahiro Yamada wrote:
This newly added code missed the global fixup by commit 75305275a721
("ARM: use const and __initconst for smp_operations").  So fix it now.

Signed-off-by: Masahiro Yamada <redacted>
Applied to fixes, thanks.


-Olof
quoted hunk
---

 arch/arm/mach-tango/platsmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-tango/platsmp.c b/arch/arm/mach-tango/platsmp.c
index a18d5a3..a21f55e 100644
--- a/arch/arm/mach-tango/platsmp.c
+++ b/arch/arm/mach-tango/platsmp.c
@@ -9,7 +9,7 @@ static int tango_boot_secondary(unsigned int cpu, struct task_struct *idle)
 	return 0;
 }
 
-static struct smp_operations tango_smp_ops __initdata = {
+static const struct smp_operations tango_smp_ops __initconst = {
 	.smp_boot_secondary	= tango_boot_secondary,
 };
 
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help