BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments
@ 2026-09-08  5:48 Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 1/7] ARM: net: fix typo "arithmatic" in comment Hemanth Selam
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Fix misspellings and repeated words in comments, found with
scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt.
Comments only, no code changes.

Changes since v3:
 - rebased onto bpf-next.  CI reported a conflict on v3 and asked for a
   rebase and resubmit; the tree has moved on since and the series
   applies cleanly again.  The patches are otherwise identical to v3.

Changes since v2:
 - moved from mainline to bpf-next, which resolved the earlier conflict
   in stream.c where the typo had already been fixed upstream.
 - renamed the selftests patches to the selftests/bpf: prefix used by the
   rest of that directory, as CI suggested.

Hemanth Selam (7):
  ARM: net: fix typo "arithmatic" in comment
  bpf: fix typos in comments
  powerpc: net: fix typo "upto" in comments
  selftests/bpf: fix typos in comments
  sparc: net: fix typo "evalute" in comment
  libbpf: Fix typos in comments
  selftests/bpf: fix repeated words in comments

 arch/arm/net/bpf_jit_32.c                                    | 2 +-
 arch/powerpc/net/bpf_jit_comp32.c                            | 2 +-
 arch/powerpc/net/bpf_jit_comp64.c                            | 4 ++--
 arch/sparc/net/bpf_jit_asm_32.S                              | 2 +-
 include/linux/filter.h                                       | 4 ++--
 kernel/bpf/reuseport_array.c                                 | 2 +-
 tools/lib/bpf/btf.c                                          | 4 ++--
 tools/lib/bpf/usdt.c                                         | 2 +-
 tools/testing/selftests/bpf/libarena/src/asan.bpf.c          | 2 +-
 tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c       | 2 +-
 tools/testing/selftests/bpf/prog_tests/task_local_data.h     | 2 +-
 tools/testing/selftests/bpf/progs/freplace_unreliable_prog.c | 2 +-
 tools/testing/selftests/bpf/progs/iters.c                    | 2 +-
 tools/testing/selftests/bpf/progs/verifier_var_off.c         | 2 +-
 14 files changed, 17 insertions(+), 17 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH bpf-next v4 1/7] ARM: net: fix typo "arithmatic" in comment
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
@ 2026-09-08  5:48 ` Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 2/7] bpf: fix typos in comments Hemanth Selam
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Correct "arithmatic" to "Arithmetic", reported by scripts/checkpatch.pl
using the misspelling list in scripts/spelling.txt.  Only touches comments,
no code changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 arch/arm/net/bpf_jit_32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c
index 9ede81afbc50..b1c21c014c9c 100644
--- a/arch/arm/net/bpf_jit_32.c
+++ b/arch/arm/net/bpf_jit_32.c
@@ -1346,7 +1346,7 @@ static inline void emit_ldsx_r(const s8 dst[], const s8 src,
 	arm_bpf_put_reg64(dst, rd, ctx);
 }
 
-/* Arithmatic Operation */
+/* Arithmetic Operation */
 static inline void emit_ar_r(const u8 rd, const u8 rt, const u8 rm,
 			     const u8 rn, struct jit_ctx *ctx, u8 op,
 			     bool is_jmp64) {
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH bpf-next v4 2/7] bpf: fix typos in comments
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 1/7] ARM: net: fix typo "arithmatic" in comment Hemanth Selam
@ 2026-09-08  5:48 ` Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 3/7] powerpc: net: fix typo "upto" " Hemanth Selam
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 include/linux/filter.h       | 4 ++--
 kernel/bpf/reuseport_array.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/filter.h b/include/linux/filter.h
index 00ad8b63aa47..4eff6e601b05 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -147,7 +147,7 @@ struct ctl_table_header;
 #define BPF_ALU32_IMM(OP, DST, IMM)				\
 	BPF_ALU32_IMM_OFF(OP, DST, IMM, 0)
 
-/* Endianess conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
+/* Endianness conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
 
 #define BPF_ENDIAN(TYPE, DST, LEN)				\
 	((struct bpf_insn) {					\
@@ -1029,7 +1029,7 @@ static inline u8 *bpf_skb_cb(const struct sk_buff *skb)
 	 *
 	 * In some socket filter cases, the cb unfortunately needs to be
 	 * saved/restored so that protocol specific skb->cb[] data won't
-	 * be lost. In any case, due to unpriviledged eBPF programs
+	 * be lost. In any case, due to unprivileged eBPF programs
 	 * attached to sockets, we need to clear the bpf_skb_cb() area
 	 * to not leak previous contents to user space.
 	 */
diff --git a/kernel/bpf/reuseport_array.c b/kernel/bpf/reuseport_array.c
index 49b8e5a0c6b4..4de08abfd94e 100644
--- a/kernel/bpf/reuseport_array.c
+++ b/kernel/bpf/reuseport_array.c
@@ -207,7 +207,7 @@ reuseport_array_update_check(const struct reuseport_array *array,
 		return -ENOTSUPP;
 
 	/*
-	 * sk must be hashed (i.e. listening in the TCP case or binded
+	 * sk must be hashed (i.e. listening in the TCP case or bound
 	 * in the UDP case) and
 	 * it must also be a SO_REUSEPORT sk (i.e. reuse cannot be NULL).
 	 *
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH bpf-next v4 3/7] powerpc: net: fix typo "upto" in comments
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 1/7] ARM: net: fix typo "arithmatic" in comment Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 2/7] bpf: fix typos in comments Hemanth Selam
@ 2026-09-08  5:48 ` Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 4/7] selftests/bpf: fix typos " Hemanth Selam
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Correct "upto" to "up to", reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 arch/powerpc/net/bpf_jit_comp32.c | 2 +-
 arch/powerpc/net/bpf_jit_comp64.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/net/bpf_jit_comp32.c b/arch/powerpc/net/bpf_jit_comp32.c
index bfdc50740da8..cf8c1b49da25 100644
--- a/arch/powerpc/net/bpf_jit_comp32.c
+++ b/arch/powerpc/net/bpf_jit_comp32.c
@@ -23,7 +23,7 @@
  *
  *		[	prev sp		] <-------------
  *		[   nv gpr save area	] 16 * 4	|
- * fp (r31) -->	[   ebpf stack space	] upto 512	|
+ * fp (r31) -->	[   ebpf stack space	] up to 512	|
  *		[     frame header	] 16		|
  * sp (r1) --->	[    stack pointer	] --------------
  */
diff --git a/arch/powerpc/net/bpf_jit_comp64.c b/arch/powerpc/net/bpf_jit_comp64.c
index fc9db691e820..8a1a00026c69 100644
--- a/arch/powerpc/net/bpf_jit_comp64.c
+++ b/arch/powerpc/net/bpf_jit_comp64.c
@@ -23,7 +23,7 @@
  * Stack layout with frame:
  * Layout when setting up our own stack frame.
  * Note: r1 at bottom, component offsets positive wrt r1.
- * Ensure the top half (upto local_tmp_var) stays consistent
+ * Ensure the top half (up to local_tmp_var) stays consistent
  * with our redzone usage.
  *
  * tail_call_info - stores tailcall count value in main program's
@@ -35,7 +35,7 @@
  *		[   nv gpr save area	] (6 * 8)	|
  *		[ addl. nv gpr save area] (12 * 8)	| <--- exception boundary/callback program
  *		[    local_tmp_var	] 24		|
- * fp (r31) -->	[   ebpf stack space	] upto 512	|
+ * fp (r31) -->	[   ebpf stack space	] up to 512	|
  *		[     frame header	] 32/112	|
  * sp (r1) --->	[    stack pointer	] --------------
  *
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH bpf-next v4 4/7] selftests/bpf: fix typos in comments
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
                   ` (2 preceding siblings ...)
  2026-09-08  5:48 ` [PATCH bpf-next v4 3/7] powerpc: net: fix typo "upto" " Hemanth Selam
@ 2026-09-08  5:48 ` Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 5/7] sparc: net: fix typo "evalute" in comment Hemanth Selam
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

The subject prefix changed since v1, from "selftests: bpf:" to
"selftests/bpf:", to match the rest of the history in this directory.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c       | 2 +-
 tools/testing/selftests/bpf/prog_tests/task_local_data.h     | 2 +-
 tools/testing/selftests/bpf/progs/freplace_unreliable_prog.c | 2 +-
 tools/testing/selftests/bpf/progs/verifier_var_off.c         | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c b/tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c
index 1b25d5c5f8fb..8b96fb861368 100644
--- a/tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c
+++ b/tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c
@@ -13,7 +13,7 @@
  * IPv6 header with a Segment Routing Header, with segments :
  *	fd00::1 -> fd00::2 -> fd00::3 -> fd00::4
  *
- * 3 fd00::/16 IPv6 addresses are binded to seg6local End.BPF actions :
+ * 3 fd00::/16 IPv6 addresses are bound to seg6local End.BPF actions :
  * - fd00::1 : add a TLV, change the flags and apply a End.X action to fc42::1
  * - fd00::2 : remove the TLV, change the flags, add a tag
  * - fd00::3 : apply an End.T action to fd00::4, through routing table 117
diff --git a/tools/testing/selftests/bpf/prog_tests/task_local_data.h b/tools/testing/selftests/bpf/prog_tests/task_local_data.h
index 8ae4fb2027f7..9f2971fc7cd5 100644
--- a/tools/testing/selftests/bpf/prog_tests/task_local_data.h
+++ b/tools/testing/selftests/bpf/prog_tests/task_local_data.h
@@ -243,7 +243,7 @@ static tld_key_t __tld_create_key(const char *name, size_t size, bool dyn_data)
 		}
 
 		/*
-		 * TLD_DEFINE_KEY() is given memory upto a page while at most
+		 * TLD_DEFINE_KEY() is given memory up to a page while at most
 		 * TLD_DYN_DATA_SIZE is allocated for tld_create_key()
 		 */
 		if (dyn_data) {
diff --git a/tools/testing/selftests/bpf/progs/freplace_unreliable_prog.c b/tools/testing/selftests/bpf/progs/freplace_unreliable_prog.c
index 624078abf3de..d7e30ee576c9 100644
--- a/tools/testing/selftests/bpf/progs/freplace_unreliable_prog.c
+++ b/tools/testing/selftests/bpf/progs/freplace_unreliable_prog.c
@@ -7,7 +7,7 @@
 
 SEC("freplace/btf_unreliable_kprobe")
 /* context type is what BPF verifier expects for kprobe context, but target
- * program has `stuct whatever *ctx` argument, so freplace operation will be
+ * program has `struct whatever *ctx` argument, so freplace operation will be
  * rejected with the following message:
  *
  * arg0 replace_btf_unreliable_kprobe(struct pt_regs *) doesn't match btf_unreliable_kprobe(struct whatever *)
diff --git a/tools/testing/selftests/bpf/progs/verifier_var_off.c b/tools/testing/selftests/bpf/progs/verifier_var_off.c
index a63e33675091..227dea0da3a0 100644
--- a/tools/testing/selftests/bpf/progs/verifier_var_off.c
+++ b/tools/testing/selftests/bpf/progs/verifier_var_off.c
@@ -225,7 +225,7 @@ __naked void stack_write_priv_vs_unpriv(void)
 }
 
 /* Similar to the previous test, but this time also perform a read from the
- * address written to with a variable offet. The read is allowed, showing that,
+ * address written to with a variable offset. The read is allowed, showing that,
  * after a variable-offset write, a privileged program can read the slots that
  * were in the range of that write (even if the verifier doesn't actually know if
  * the slot being read was really written to or not.
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH bpf-next v4 5/7] sparc: net: fix typo "evalute" in comment
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
                   ` (3 preceding siblings ...)
  2026-09-08  5:48 ` [PATCH bpf-next v4 4/7] selftests/bpf: fix typos " Hemanth Selam
@ 2026-09-08  5:48 ` Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 6/7] libbpf: Fix typos in comments Hemanth Selam
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Correct "evalute" to "evaluate", reported by scripts/checkpatch.pl using
the misspelling list in scripts/spelling.txt.  Only touches comments, no
code changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 arch/sparc/net/bpf_jit_asm_32.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sparc/net/bpf_jit_asm_32.S b/arch/sparc/net/bpf_jit_asm_32.S
index a2e28e0464a3..81430f065ac9 100644
--- a/arch/sparc/net/bpf_jit_asm_32.S
+++ b/arch/sparc/net/bpf_jit_asm_32.S
@@ -195,7 +195,7 @@ bpf_error:
 	/* Make the JIT program return zero.  The JIT epilogue
 	 * stores away the original %o7 into r_saved_O7.  The
 	 * normal leaf function return is to use "retl" which
-	 * would evalute to "jmpl %o7 + 8, %g0" but we want to
+	 * would evaluate to "jmpl %o7 + 8, %g0" but we want to
 	 * use the saved value thus the sequence you see here.
 	 */
 	jmpl	r_saved_O7 + 8, %g0
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH bpf-next v4 6/7] libbpf: Fix typos in comments
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
                   ` (4 preceding siblings ...)
  2026-09-08  5:48 ` [PATCH bpf-next v4 5/7] sparc: net: fix typo "evalute" in comment Hemanth Selam
@ 2026-09-08  5:48 ` Hemanth Selam
  2026-09-08  5:48 ` [PATCH bpf-next v4 7/7] selftests/bpf: fix repeated words " Hemanth Selam
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

The subject changed since v1, from "tools/lib: fix typos in comments":
both files are under tools/lib/bpf/, where the prevailing form is
"libbpf: Fix ...".

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 tools/lib/bpf/btf.c  | 4 ++--
 tools/lib/bpf/usdt.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c
index c783359977b4..d1c73113e58f 100644
--- a/tools/lib/bpf/btf.c
+++ b/tools/lib/bpf/btf.c
@@ -3847,7 +3847,7 @@ static int btf_dedup_remap_types(struct btf_dedup *d);
  * types, in general, can form graphs containing cycles, not just DAGs.
  *
  * While algorithm does deduplication, it also merges and resolves type
- * information (unless disabled throught `struct btf_opts`), whenever possible.
+ * information (unless disabled through `struct btf_opts`), whenever possible.
  * E.g., in the example above with two compilation units having partial type
  * information for structs `A` and `B`, the output of algorithm will emit
  * a single copy of each BTF type that describes structs `A`, `B`, and `S`
@@ -5648,7 +5648,7 @@ static int btf_dedup_resolve_fwds(struct btf_dedup *d)
  *
  * After we established for each type its corresponding canonical representative
  * type, we now can eliminate types that are not canonical and leave only
- * canonical ones layed out sequentially in memory by copying them over
+ * canonical ones laid out sequentially in memory by copying them over
  * duplicates. During compaction btf_dedup->hypot_map array is reused to store
  * a map from original type ID to a new compacted type ID, which will be used
  * during next phase to "fix up" type IDs, referenced from struct/union and
diff --git a/tools/lib/bpf/usdt.c b/tools/lib/bpf/usdt.c
index ee9d1b614883..67c60f716c1a 100644
--- a/tools/lib/bpf/usdt.c
+++ b/tools/lib/bpf/usdt.c
@@ -144,7 +144,7 @@
  * about. This state has to be maintained per-BPF object and coordinate
  * between different USDT attachments within the same BPF object.
  *
- * Spec ID is the key in spec BPF map, value is the actual USDT spec layed out
+ * Spec ID is the key in spec BPF map, value is the actual USDT spec laid out
  * as struct usdt_spec. Each invocation of BPF program at runtime needs to
  * know its associated spec ID. It gets it either through BPF cookie, which
  * libbpf sets to spec ID during attach time, or, if kernel is too old to
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH bpf-next v4 7/7] selftests/bpf: fix repeated words in comments
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
                   ` (5 preceding siblings ...)
  2026-09-08  5:48 ` [PATCH bpf-next v4 6/7] libbpf: Fix typos in comments Hemanth Selam
@ 2026-09-08  5:48 ` Hemanth Selam
       [not found] ` <01b5453944b3f5259e123e7684a6b6acc60cab31bb258bc7dad31adc5e294984@mail.kernel.org>
  2026-09-09 18:29 ` Emil Tsalapatis
  8 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  5:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Russell King, Puranjay Mohan, John Fastabend,
	Hari Bathini, Christophe Leroy (CS GROUP), Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

Drop repeated words in comments, reported by scripts/checkpatch.pl.  Only
touches comments, no code changes.

The subject prefix changed since v1, from "selftests: bpf:" to
"selftests/bpf:", to match the rest of the history in this directory.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 tools/testing/selftests/bpf/libarena/src/asan.bpf.c | 2 +-
 tools/testing/selftests/bpf/progs/iters.c           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/bpf/libarena/src/asan.bpf.c b/tools/testing/selftests/bpf/libarena/src/asan.bpf.c
index de656b69d13a..fb50ee4ad097 100644
--- a/tools/testing/selftests/bpf/libarena/src/asan.bpf.c
+++ b/tools/testing/selftests/bpf/libarena/src/asan.bpf.c
@@ -204,7 +204,7 @@ static __always_inline bool check_asan_args(s8 __arena *addr, size_t size,
 		goto confirmed_valid;
 
 	/*
-	 * Wraparound is possible for values close to the the edge of the
+	 * Wraparound is possible for values close to the edge of the
 	 * 4GiB boundary of the arena (last valid address is 1UL << 32 - 1).
 	 *
 	 *
diff --git a/tools/testing/selftests/bpf/progs/iters.c b/tools/testing/selftests/bpf/progs/iters.c
index c6699159dacd..e44a979270ea 100644
--- a/tools/testing/selftests/bpf/progs/iters.c
+++ b/tools/testing/selftests/bpf/progs/iters.c
@@ -1511,7 +1511,7 @@ __naked int checkpoint_states_deletion(void)
 	 * would get equal to one of the explored states and thus loop
 	 * exploration would be finished (at-least for a specific path).
 	 * Verifier evicts explored states with high miss to hit ratio
-	 * to to avoid comparing current state with too many explored
+	 * to avoid comparing current state with too many explored
 	 * states per instruction.
 	 * This test is designed to "stress test" eviction policy defined using formula:
 	 *
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments
       [not found] ` <01b5453944b3f5259e123e7684a6b6acc60cab31bb258bc7dad31adc5e294984@mail.kernel.org>
@ 2026-09-08  6:08   ` Hemanth Selam
  0 siblings, 0 replies; 10+ messages in thread
From: Hemanth Selam @ 2026-09-08  6:08 UTC (permalink / raw)
  To: kernel-ci
  Cc: Andrii Nakryiko, Daniel Borkmann, Martin KaFai Lau,
	Alexei Starovoitov, bpf

On Tue, Sep 08, 2026 at 05:53:53AM +0000, bot+bpf-ci@kernel.org wrote:
> CI has tested the following submission:
> Status:     CONFLICT
> Name:       [bpf-next,v4,0/7] bpf: fix typos and repeated words in comments
> PR:         https://github.com/kernel-patches/bpf/pull/13699
>
> Please rebase your submission onto the most recent upstream change and resubmit
> the patch to get it tested again.

I resent this as v4 rebased onto bpf-next in response to the same report
on v3, and it came back CONFLICT again, so I would rather ask than keep
resending the same content.

The series applies cleanly here on all three of:

  bpf-next master                          1b7415bf70be
  kernel-patches/bpf bpf-next_base
  kernel-patches/bpf bpf-next

with git am and no fuzz, all seven patches.

Looking at the pull requests the bot opened, the base branch does not
look like the bpf-next one:

  v2  PR 13680  base bpf_base       head series/1159292=>bpf
  v3  PR 13685  base bpf-net_base   head series/1159712=>bpf-net
  v4  PR 13699  base bpf-net_base   head series/1160154=>bpf-net

and all three report changed_files: 0, which suggests the series is not
being applied rather than that it conflicts with something.

The subject is tagged [PATCH bpf-next v4].  The series does touch
arch/{arm,powerpc,sparc}/net/bpf_jit*, so if the target tree is picked
up from the paths or from the "net:" in some of the patch subjects, that
might be what is sending it to the bpf/net branches.

Is there anything I should change on my side?  Happy to retitle the arch
patches or split them out if that helps the routing.  Otherwise the
content is unchanged from v3 and I would rather not post a v5 just to
retrigger CI.

Thanks,
Hemanth

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments
  2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
                   ` (7 preceding siblings ...)
       [not found] ` <01b5453944b3f5259e123e7684a6b6acc60cab31bb258bc7dad31adc5e294984@mail.kernel.org>
@ 2026-09-09 18:29 ` Emil Tsalapatis
  8 siblings, 0 replies; 10+ messages in thread
From: Emil Tsalapatis @ 2026-09-09 18:29 UTC (permalink / raw)
  To: Hemanth Selam, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi,
	Martin KaFai Lau, Song Liu, Yonghong Song, Jiri Olsa,
	Emil Tsalapatis, Ihor Solodrai, Russell King, Puranjay Mohan,
	John Fastabend, Hari Bathini, Christophe Leroy (CS GROUP),
	Naveen N Rao, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Shuah Khan, David S. Miller, Andreas Larsson
  Cc: bpf, linux-arm-kernel, linux-kernel, linuxppc-dev,
	linux-kselftest, sparclinux

On Tue Sep 8, 2026 at 1:48 AM EDT, Hemanth Selam wrote:
> Fix misspellings and repeated words in comments, found with
> scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt.
> Comments only, no code changes.
>
> Changes since v3:
>  - rebased onto bpf-next.  CI reported a conflict on v3 and asked for a
>    rebase and resubmit; the tree has moved on since and the series
>    applies cleanly again.  The patches are otherwise identical to v3.
>
> Changes since v2:
>  - moved from mainline to bpf-next, which resolved the earlier conflict
>    in stream.c where the typo had already been fixed upstream.
>  - renamed the selftests patches to the selftests/bpf: prefix used by the
>    rest of that directory, as CI suggested.
>
> Hemanth Selam (7):
>   ARM: net: fix typo "arithmatic" in comment
>   bpf: fix typos in comments
>   powerpc: net: fix typo "upto" in comments
>   selftests/bpf: fix typos in comments
>   sparc: net: fix typo "evalute" in comment
>   libbpf: Fix typos in comments
>   selftests/bpf: fix repeated words in comments

NACK, this kind of churn for no measurable gain is not productive.

pw-bot: cr

>
>  arch/arm/net/bpf_jit_32.c                                    | 2 +-
>  arch/powerpc/net/bpf_jit_comp32.c                            | 2 +-
>  arch/powerpc/net/bpf_jit_comp64.c                            | 4 ++--
>  arch/sparc/net/bpf_jit_asm_32.S                              | 2 +-
>  include/linux/filter.h                                       | 4 ++--
>  kernel/bpf/reuseport_array.c                                 | 2 +-
>  tools/lib/bpf/btf.c                                          | 4 ++--
>  tools/lib/bpf/usdt.c                                         | 2 +-
>  tools/testing/selftests/bpf/libarena/src/asan.bpf.c          | 2 +-
>  tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c       | 2 +-
>  tools/testing/selftests/bpf/prog_tests/task_local_data.h     | 2 +-
>  tools/testing/selftests/bpf/progs/freplace_unreliable_prog.c | 2 +-
>  tools/testing/selftests/bpf/progs/iters.c                    | 2 +-
>  tools/testing/selftests/bpf/progs/verifier_var_off.c         | 2 +-
>  14 files changed, 17 insertions(+), 17 deletions(-)


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-09-09 18:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08  5:48 [PATCH bpf-next v4 0/7] bpf: fix typos and repeated words in comments Hemanth Selam
2026-09-08  5:48 ` [PATCH bpf-next v4 1/7] ARM: net: fix typo "arithmatic" in comment Hemanth Selam
2026-09-08  5:48 ` [PATCH bpf-next v4 2/7] bpf: fix typos in comments Hemanth Selam
2026-09-08  5:48 ` [PATCH bpf-next v4 3/7] powerpc: net: fix typo "upto" " Hemanth Selam
2026-09-08  5:48 ` [PATCH bpf-next v4 4/7] selftests/bpf: fix typos " Hemanth Selam
2026-09-08  5:48 ` [PATCH bpf-next v4 5/7] sparc: net: fix typo "evalute" in comment Hemanth Selam
2026-09-08  5:48 ` [PATCH bpf-next v4 6/7] libbpf: Fix typos in comments Hemanth Selam
2026-09-08  5:48 ` [PATCH bpf-next v4 7/7] selftests/bpf: fix repeated words " Hemanth Selam
     [not found] ` <01b5453944b3f5259e123e7684a6b6acc60cab31bb258bc7dad31adc5e294984@mail.kernel.org>
2026-09-08  6:08   ` [PATCH bpf-next v4 0/7] bpf: fix typos and " Hemanth Selam
2026-09-09 18:29 ` Emil Tsalapatis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox