[PATCH] riscv, bpf: Fix typo in comment

Xiao Wang posted 1 patch 1 year, 7 months ago
arch/riscv/net/bpf_jit.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] riscv, bpf: Fix typo in comment
Posted by Xiao Wang 1 year, 7 months ago
We can use either "instruction" or "insn" in the comment.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
---
 arch/riscv/net/bpf_jit.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/net/bpf_jit.h b/arch/riscv/net/bpf_jit.h
index 18a7885ba95e..c1b6b44a2f49 100644
--- a/arch/riscv/net/bpf_jit.h
+++ b/arch/riscv/net/bpf_jit.h
@@ -611,7 +611,7 @@ static inline u32 rv_nop(void)
 	return rv_i_insn(0, 0, 0, 0, 0x13);
 }
 
-/* RVC instrutions. */
+/* RVC instructions. */
 
 static inline u16 rvc_addi4spn(u8 rd, u32 imm10)
 {
@@ -740,7 +740,7 @@ static inline u16 rvc_swsp(u32 imm8, u8 rs2)
 	return rv_css_insn(0x6, imm, rs2, 0x2);
 }
 
-/* RVZBB instrutions. */
+/* RVZBB instructions. */
 static inline u32 rvzbb_sextb(u8 rd, u8 rs1)
 {
 	return rv_i_insn(0x604, rs1, 1, rd, 0x13);
-- 
2.25.1
Re: [PATCH] riscv, bpf: Fix typo in comment
Posted by Pu Lehui 1 year, 7 months ago
On 2024/5/7 19:16, Xiao Wang wrote:
> We can use either "instruction" or "insn" in the comment.
> 
> Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
> ---
>   arch/riscv/net/bpf_jit.h | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/riscv/net/bpf_jit.h b/arch/riscv/net/bpf_jit.h
> index 18a7885ba95e..c1b6b44a2f49 100644
> --- a/arch/riscv/net/bpf_jit.h
> +++ b/arch/riscv/net/bpf_jit.h
> @@ -611,7 +611,7 @@ static inline u32 rv_nop(void)
>   	return rv_i_insn(0, 0, 0, 0, 0x13);
>   }
>   
> -/* RVC instrutions. */
> +/* RVC instructions. */
>   
>   static inline u16 rvc_addi4spn(u8 rd, u32 imm10)
>   {
> @@ -740,7 +740,7 @@ static inline u16 rvc_swsp(u32 imm8, u8 rs2)
>   	return rv_css_insn(0x6, imm, rs2, 0x2);
>   }
>   
> -/* RVZBB instrutions. */
> +/* RVZBB instructions. */
>   static inline u32 rvzbb_sextb(u8 rd, u8 rs1)
>   {
>   	return rv_i_insn(0x604, rs1, 1, rd, 0x13);

Reviewed-by: Pu Lehui <pulehui@huawei.com>