]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: Move nop definition to insn-def.h
authorCharlie Jenkins <charlie@rivosinc.com>
Wed, 19 Mar 2025 18:35:19 +0000 (11:35 -0700)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Thu, 20 Mar 2025 09:14:42 +0000 (09:14 +0000)
commitafa8a93932aa63b107d81bd438454760d8c7c8a3
treef4fff2fb698e8195df767813357b94d057e27628
parent2014c95afecee3e76ca4a56956a936e23283f05b
riscv: Move nop definition to insn-def.h

We have duplicated the definition of the nop instruction in ftrace.h and
in jump_label.c. Move this definition into the generic file insn-def.h
so that they can share the definition with each other and with future
files.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250319-runtime_const_riscv-v10-1-745b31a11d65@rivosinc.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/include/asm/ftrace.h
arch/riscv/include/asm/insn-def.h
arch/riscv/kernel/ftrace.c
arch/riscv/kernel/jump_label.c