Re: [PATCH v10 1/2] riscv: Move nop definition to insn-def.h
From: Andrew Jones
Date: Thu Mar 20 2025 - 05:03:06 EST
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 <charlie@xxxxxxxxxxxx>
> Reviewed-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
> Tested-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
> ---
> 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 <ajones@xxxxxxxxxxxxxxxx>