Skip to content

Commit 153c46f

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
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>
1 parent 7f3de1a commit 153c46f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/riscv/kernel/head.S

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ secondary_start_sbi:
177177
REG_L sp, (a4)
178178
REG_L tp, (a5)
179179

180-
.global secondary_start_common
181-
secondary_start_common:
180+
.Lsecondary_start_common:
182181

183182
#ifdef CONFIG_MMU
184183
/* Enable virtual memory and relocate to virtual address */
@@ -365,7 +364,7 @@ clear_bss_done:
365364
beqz tp, .Lwait_for_cpu_up
366365
fence
367366

368-
tail secondary_start_common
367+
tail .Lsecondary_start_common
369368
#endif
370369

371370
END(_start_kernel)

0 commit comments

Comments
 (0)