Re: [PATCH v10 1/2] riscv: Move nop definition to insn-def.h
From: Andrew Jones <hidden>
Date: 2025-03-20 09:02:37
Also in:
linux-riscv, lkml
From: Andrew Jones <hidden>
Date: 2025-03-20 09:02:37
Also in:
linux-riscv, lkml
On Wed, Mar 19, 2025 at 11:35:19AM -0700, Charlie Jenkins wrote:
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 <redacted> Reviewed-by: Alexandre Ghiti <redacted> Tested-by: Alexandre Ghiti <redacted> --- arch/riscv/include/asm/ftrace.h | 1 - arch/riscv/include/asm/insn-def.h | 3 +++ arch/riscv/kernel/ftrace.c | 6 +++--- arch/riscv/kernel/jump_label.c | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-)
Reviewed-by: Andrew Jones <redacted>