OSDN Git Service

riscv: head: make secondary_start_common() static
authorJisheng Zhang <jszhang@kernel.org>
Sun, 28 Nov 2021 16:07:38 +0000 (00:07 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sun, 9 Jan 2022 19:02:42 +0000 (11:02 -0800)
There are no users outside head.S so make secondary_start_common()
static.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/head.S

index 469eccd..521c9ef 100644 (file)
@@ -177,8 +177,7 @@ secondary_start_sbi:
        REG_L sp, (a4)
        REG_L tp, (a5)
 
-       .global secondary_start_common
-secondary_start_common:
+.Lsecondary_start_common:
 
 #ifdef CONFIG_MMU
        /* Enable virtual memory and relocate to virtual address */
@@ -365,7 +364,7 @@ clear_bss_done:
        beqz tp, .Lwait_for_cpu_up
        fence
 
-       tail secondary_start_common
+       tail .Lsecondary_start_common
 #endif
 
 END(_start_kernel)