From: Samuel Holland Date: Wed, 27 Mar 2024 16:04:41 +0000 (-0700) Subject: riscv: jump_label: Simplify assembly syntax X-Git-Tag: v6.11-rc1~94^2~11^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2aa30d19cfbb3c2172f3c4f50abae447c4937772;p=thirdparty%2Fkernel%2Flinux.git riscv: jump_label: Simplify assembly syntax The idiomatic way to write "jal zero" is "j". Reviewed-by: Björn Töpel Signed-off-by: Samuel Holland Link: https://lore.kernel.org/r/20240327160520.791322-3-samuel.holland@sifive.com Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/include/asm/jump_label.h b/arch/riscv/include/asm/jump_label.h index 6290b26f4a148..1c768d02bd0c2 100644 --- a/arch/riscv/include/asm/jump_label.h +++ b/arch/riscv/include/asm/jump_label.h @@ -46,7 +46,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke " .option push \n\t" " .option norelax \n\t" " .option norvc \n\t" - "1: jal zero, %l[label] \n\t" + "1: j %l[label] \n\t" " .option pop \n\t" " .pushsection __jump_table, \"aw\" \n\t" " .align " RISCV_LGPTR " \n\t"