summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2021-11-29 00:07:38 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2022-01-09 11:02:42 -0800
commit153c46faf6ae4961451bed2878ff9e93736efe50 (patch)
treec1e881c34dcb528e89ede3563ccd3a7c6fab13c2 /arch/riscv
parent7f3de1adb377960bc061b1d7ee477527d499d2bd (diff)
downloadlinux-153c46faf6ae4961451bed2878ff9e93736efe50.tar.gz
linux-153c46faf6ae4961451bed2878ff9e93736efe50.tar.bz2
linux-153c46faf6ae4961451bed2878ff9e93736efe50.zip
riscv: head: make secondary_start_common() static
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>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/kernel/head.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index 469eccd3780f..521c9ef74ffe 100644
--- a/arch/riscv/kernel/head.S
+++ b/arch/riscv/kernel/head.S
@@ -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)