]> www.infradead.org Git - users/hch/misc.git/commitdiff
riscv: Fix typo EXRACT -> EXTRACT
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 20 Jun 2025 20:21:57 +0000 (20:21 +0000)
committerPaul Walmsley <pjw@kernel.org>
Tue, 16 Sep 2025 22:28:02 +0000 (16:28 -0600)
Simply fix a typo.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Clément Léger <cleger@rivosinc.com>
Link: https://lore.kernel.org/r/20250620-dev-alex-insn_duplicate_v5_manual-v5-1-d865dc9ad180@rivosinc.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/insn.h
arch/riscv/kernel/vector.c

index 09fde95a5e8f75ac6ee741ded7c6beaa57677d13..2a589a58b2917d67efcb18792b05f5e640bda37f 100644 (file)
@@ -352,7 +352,7 @@ static __always_inline bool riscv_insn_is_c_jalr(u32 code)
        ({typeof(x) x_ = (x); RV_X(x_, RVFDQ_FL_FS_WIDTH_OFF, \
                                   RVFDQ_FL_FS_WIDTH_MASK); })
 
-#define RVV_EXRACT_VL_VS_WIDTH(x) RVFDQ_EXTRACT_FL_FS_WIDTH(x)
+#define RVV_EXTRACT_VL_VS_WIDTH(x) RVFDQ_EXTRACT_FL_FS_WIDTH(x)
 
 /*
  * Get the immediate from a J-type instruction.
index 184f780c932d443d81eecac7a6fb8070ee7a5824..901e67adf57608385e6815be1518e70216236eda 100644 (file)
@@ -93,7 +93,7 @@ bool insn_is_vector(u32 insn_buf)
                return true;
        case RVV_OPCODE_VL:
        case RVV_OPCODE_VS:
-               width = RVV_EXRACT_VL_VS_WIDTH(insn_buf);
+               width = RVV_EXTRACT_VL_VS_WIDTH(insn_buf);
                if (width == RVV_VL_VS_WIDTH_8 || width == RVV_VL_VS_WIDTH_16 ||
                    width == RVV_VL_VS_WIDTH_32 || width == RVV_VL_VS_WIDTH_64)
                        return true;