summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/probes/rethook_trampoline.S
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2023-10-24 16:26:52 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-11-06 20:42:47 +0300
commit76329c693924d8f37afbf361f0d8daab594e1644 (patch)
treed094e157fd0d3d01e0e6cd608cce920b75b1ec38 /arch/riscv/kernel/probes/rethook_trampoline.S
parentb18f7296fbfdb2ad0871f00f3042fc74663d52ac (diff)
downloadlinux-76329c693924d8f37afbf361f0d8daab594e1644.tar.xz
riscv: Use SYM_*() assembly macros instead of deprecated ones
ENTRY()/END()/WEAK() macros are deprecated and we should make use of the new SYM_*() macros [1] for better annotation of symbols. Replace the deprecated ones with the new ones and fix wrong usage of END()/ENDPROC() to correctly describe the symbols. [1] https://docs.kernel.org/core-api/asm-annotations.html Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20231024132655.730417-3-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/probes/rethook_trampoline.S')
-rw-r--r--arch/riscv/kernel/probes/rethook_trampoline.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kernel/probes/rethook_trampoline.S b/arch/riscv/kernel/probes/rethook_trampoline.S
index 21bac92a170a..f2cd83d9b0f0 100644
--- a/arch/riscv/kernel/probes/rethook_trampoline.S
+++ b/arch/riscv/kernel/probes/rethook_trampoline.S
@@ -75,7 +75,7 @@
REG_L x31, PT_T6(sp)
.endm
-ENTRY(arch_rethook_trampoline)
+SYM_CODE_START(arch_rethook_trampoline)
addi sp, sp, -(PT_SIZE_ON_STACK)
save_all_base_regs
@@ -90,4 +90,4 @@ ENTRY(arch_rethook_trampoline)
addi sp, sp, PT_SIZE_ON_STACK
ret
-ENDPROC(arch_rethook_trampoline)
+SYM_CODE_END(arch_rethook_trampoline)