riscv: use ".L" local labels in assembly when applicable
authorClément Léger <cleger@rivosinc.com>
Tue, 24 Oct 2023 13:26:51 +0000 (15:26 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Nov 2023 17:42:05 +0000 (09:42 -0800)
commitb18f7296fbfdb2ad0871f00f3042fc74663d52ac
tree369db0c89beaa06d6aee736f0fb91d473c2292af
parent57a4542cb7c9baa1509c3366b57a08d75b212ead
riscv: use ".L" local labels in assembly when applicable

For the sake of coherency, use local labels in assembly when
applicable. This also avoid kprobes being confused when applying a
kprobe since the size of function is computed by checking where the
next visible symbol is located. This might end up in computing some
function size to be way shorter than expected and thus failing to apply
kprobes to the specified offset.

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-2-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/entry.S
arch/riscv/kernel/head.S
arch/riscv/kernel/mcount.S
arch/riscv/lib/memmove.S