Skip to contentSkip to conversation

mips: octeon: mark some functions __init in smp.c

PATCH New Yang Shi 1 participant 1 message Feb 20, 2016 MIPS

lore
Share & tools
lore

Yang Shi

author
#0 lore raw

PATCH 1/1 mips: octeon: mark some functions __init in smp.c

octeon_smp_setup and octeon_prepare_cpus are just used during initialization period, so mark them as __init. And, octeon_prepare_cpus is just used in smp.c, so make it static as well.

---
 arch/mips/cavium-octeon/smp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/cavium-octeon/smp.c +2 -2
index b7fa9ae..3f03893 100644
@@ -97,7 +97,7 @@ static void octeon_smp_hotplug_setup(void)
 #endif
 }
 
-static void octeon_smp_setup(void)
+static void __init octeon_smp_setup(void)
 {
 	const int coreid = cvmx_get_core_num();
 	int cpus;
@@ -196,7 +196,7 @@ static void octeon_init_secondary(void)
  * Callout to firmware before smp_init
  *
  */
-void octeon_prepare_cpus(unsigned int max_cpus)
+static void __init octeon_prepare_cpus(unsigned int max_cpus)
 {
 	/*
 	 * Only the low order mailbox bits are used for IPIs, leave
Signature · 1 line
2.0.2