Skip to content

Commit

Permalink
riscv: head: make secondary_start_common() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jisheng Zhang authored and Palmer Dabbelt committed Jan 9, 2022
1 parent 7f3de1a commit 153c46f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/riscv/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 153c46f

Please sign in to comment.