Skip to contentSkip to conversation

ARM: sunxi: make sun6i SMP ops static

PATCH RESEND New Emilio López 2 participants 2 messages Nov 15, 2014 – Nov 16, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ARM: sunxi: make sun6i SMP ops static

The sun6i SMP ops are currently not marked as static, as reported by sparse. Let's mark it as such.

---

Here's an oldish patch that never made it to mainline. I rediscovered it today while I was cleaning up stuff and running a sparse build of -rc4.

Cheers!

Emilio

 arch/arm/mach-sunxi/platsmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-sunxi/platsmp.c +1 -1
index c53077b..e44d028 100644
@@ -116,7 +116,7 @@ static int sun6i_smp_boot_secondary(unsigned int cpu,
 	return 0;
 }
 
-struct smp_operations sun6i_smp_ops __initdata = {
+static struct smp_operations sun6i_smp_ops __initdata = {
 	.smp_prepare_cpus	= sun6i_smp_prepare_cpus,
 	.smp_boot_secondary	= sun6i_smp_boot_secondary,
 };
Signature · 1 line
2.1.3
#1 lore raw

PATCH RESEND 1/1 ARM: sunxi: make sun6i SMP ops static

Quoted 4 lines · Emilio L?pez

The sun6i SMP ops are currently not marked as static, as reported by sparse. Let's mark it as such.

Quoted 8 lines

---

Here's an oldish patch that never made it to mainline. I rediscovered it today while I was cleaning up stuff and running a sparse build of -rc4.

Cheers!

Emilio

Merged, thanks!

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141116/59fee241/attachment.sig>