Skip to contentSkip to conversation

riscv, bpf: Fix typo in comment

PATCH Applied Xiao Wang 3 participants 3 messages May 7, 2024 – May 13, 2024

Subsystems (4)
lore
Share & tools
lore

Xiao Wang

author
#0 lore raw

PATCH 1/1 riscv, bpf: Fix typo in comment

We can use either "instruction" or "insn" in the comment.

---
 arch/riscv/net/bpf_jit.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/net/bpf_jit.h +2 -2
index 18a7885ba95e..c1b6b44a2f49 100644
@@ -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);
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · Xiao Wang

We can use either "instruction" or "insn" in the comment.

---
  arch/riscv/net/bpf_jit.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/net/bpf_jit.h +1 -1
index 18a7885ba95e..c1b6b44a2f49 100644
@@ -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)
  {

arch/riscv/net/bpf_jit.h static inline u16 rvc_swsp(u32 imm8, u8 rs2) · line 746

Quoted 8 lines
arch/riscv/net/bpf_jit.h +1 -1
@@ -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 lore raw
In reply to Xiao Wang
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Quoted 6 lines · On Tue, 7 May 2024 19:16:18 +0800 you wrote:

We can use either "instruction" or "insn" in the comment.

---
 arch/riscv/net/bpf_jit.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
- riscv, bpf: Fix typo in comment

    https://git.kernel.org/bpf/bpf-next/c/80c5a07ae673

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html