arm64: debug: make local symbols static
PATCH 1/2 arm64: debug: make local symbols static
Make local symbols static, because these are used only in this file.
Signed-off-by Jingoo Han <[email protected]>
--- arch/arm64/kernel/debug-monitors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/kernel/debug-monitors.c +2 -2
@@ -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
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.
Signed-off-by Jingoo Han <[email protected]>
--- arch/arm64/kernel/smp_spin_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/smp_spin_table.c +1 -1
@@ -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
Catalin Marinas
maintainerPATCH 1/2 arm64: debug: make local symbols static
In reply to Jingoo HanQuoted 4 lines · Jingoo Han
Make local symbols static, because these are used only in this file.
Signed-off-by Jingoo Han <[email protected]>
Applied (both). Thanks.
Signature · 1 line
Catalin