Skip to contentSkip to conversation

metag/smp: Make boot_secondary() static

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Jan 3, 2014 – Jan 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 metag/smp: Make boot_secondary() static

From: Geert Uytterhoeven <[email protected]>

boot_secondary() is not used outside arch/metag/kernel/smp.c, hence make it static.

---
 arch/metag/kernel/smp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/metag/kernel/smp.c +1 -1
index 7c0113142981..fc4b80e1e06a 100644
@@ -68,7 +68,7 @@ static DECLARE_COMPLETION(cpu_running);
 /*
  * "thread" is assumed to be a valid Meta hardware thread ID.
  */
-int boot_secondary(unsigned int thread, struct task_struct *idle)
+static int boot_secondary(unsigned int thread, struct task_struct *idle)
 {
 	u32 val;
 
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Applied
#1 lore raw
Quoted 6 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

boot_secondary() is not used outside arch/metag/kernel/smp.c, hence make it static.

Thanks, applied.

Cheers
James

Quoted 10 lines
---
 arch/metag/kernel/smp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/metag/kernel/smp.c +0 -0
index 7c0113142981..fc4b80e1e06a 100644

arch/metag/kernel/smp.c static DECLARE_COMPLETION(cpu_running); · line 74

Quoted 8 lines
arch/metag/kernel/smp.c +1 -1
@@ -68,7 +68,7 @@ static DECLARE_COMPLETION(cpu_running);
 /*
  * "thread" is assumed to be a valid Meta hardware thread ID.
  */
-int boot_secondary(unsigned int thread, struct task_struct *idle)
+static int boot_secondary(unsigned int thread, struct task_struct *idle)
 {
 	u32 val;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html