Skip to contentSkip to conversation

arm64: debug: make local symbols static

PATCH New Jingoo Han 2 participants 3 messages Mar 5, 2014 – Mar 12, 2014 arm64

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/2 arm64: debug: make local symbols static

Make local symbols static, because these are used only in this file.

---
 arch/arm64/kernel/debug-monitors.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/kernel/debug-monitors.c +2 -2
index 13f87de..14ba23c 100644
@@ -189,7 +189,7 @@ static void clear_regs_spsr_ss(struct pt_regs *regs)
 
 /* EL1 Single Step Handler hooks */
 static LIST_HEAD(step_hook);
-DEFINE_RWLOCK(step_hook_lock);
+static DEFINE_RWLOCK(step_hook_lock);
 
 void register_step_hook(struct step_hook *hook)
 {
@@ -276,7 +276,7 @@ static int single_step_handler(unsigned long addr, unsigned int esr,
  * Use reader/writer locks instead of plain spinlock.
  */
 static LIST_HEAD(break_hook);
-DEFINE_RWLOCK(break_hook_lock);
+static DEFINE_RWLOCK(break_hook_lock);
 
 void register_break_hook(struct break_hook *hook)
 {
Signature · 1 line
1.7.10.4
author
#1 lore raw

PATCH 2/2 arm64: smp: make local symbol static

Make smp_spin_table_cpu_postboot() static, because this function is used only in this file.

---
 arch/arm64/kernel/smp_spin_table.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/smp_spin_table.c +1 -1
index 44c2280..7a530d2 100644
@@ -128,7 +128,7 @@ static int smp_spin_table_cpu_boot(unsigned int cpu)
 	return secondary_holding_pen_release != INVALID_HWID ? -ENOSYS : 0;
 }
 
-void smp_spin_table_cpu_postboot(void)
+static void smp_spin_table_cpu_postboot(void)
 {
 	/*
 	 * Let the primary processor know we're out of the pen.
Signature · 1 line
1.7.10.4