Linux Documentation
 help / color / mirror / Atom feed
* [PATCH bpf-next v2] bpf, docs: Fix two struct names in btf.rst and kfuncs.rst
@ 2026-09-06 22:26 Karl Mehltretter
  2026-09-11 17:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Mehltretter @ 2026-09-06 22:26 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
  Cc: Karl Mehltretter, Eduard Zingerman, Kumar Kartikeya Dwivedi,
	Martin KaFai Lau, Song Liu, Yonghong Song, Jiri Olsa, bpf,
	Jonathan Corbet, linux-doc, Shuah Khan, Randy Dunlap,
	David Vernet

struct btf_variable and struct bpf_cpmuask do not exist; the names are
struct btf_var and struct bpf_cpumask.

Use them.

Fixes: f063c889c945 ("bpf: add specification for BTF Var and DataSec kinds")
Fixes: 027bdec89364 ("bpf/docs: Document the nocast aliasing behavior of ___init")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
---
v2: the two one-line fixes combined into one patch, as Alexei asked;
    the two Fixes: tags stay because the typos have different origins
    Randy's Reviewed-by, given on both v1 postings, collected
v1: https://lore.kernel.org/r/20260905095649.42351-1-kmehltretter@gmail.com/
    https://lore.kernel.org/r/20260905095527.42261-1-kmehltretter@gmail.com/

 Documentation/bpf/btf.rst    | 2 +-
 Documentation/bpf/kfuncs.rst | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst
index 3f05f17990ad..004aa1058d85 100644
--- a/Documentation/bpf/btf.rst
+++ b/Documentation/bpf/btf.rst
@@ -416,7 +416,7 @@ If the function has variable arguments, the last parameter is encoded with
   * ``info.vlen``: 0
   * ``type``: the type of the variable
 
-``btf_type`` is followed by a single ``struct btf_variable`` with the
+``btf_type`` is followed by a single ``struct btf_var`` with the
 following data::
 
     struct btf_var {
diff --git a/Documentation/bpf/kfuncs.rst b/Documentation/bpf/kfuncs.rst
index 85f73e0bbd0f..57831eda0a33 100644
--- a/Documentation/bpf/kfuncs.rst
+++ b/Documentation/bpf/kfuncs.rst
@@ -536,7 +536,7 @@ For example, for the following type definition:
 
 The verifier would allow a ``struct bpf_cpumask *`` to be passed to a kfunc
 taking a ``cpumask_t *`` (which is a typedef of ``struct cpumask *``). For
-instance, both ``struct cpumask *`` and ``struct bpf_cpmuask *`` can be passed
+instance, both ``struct cpumask *`` and ``struct bpf_cpumask *`` can be passed
 to bpf_cpumask_test_cpu().
 
 In some cases, this type-aliasing behavior is not desired. ``struct

base-commit: 986c24e0fe44f844b44d365b71ce831947f50298
-- 
2.53.0


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

* Re: [PATCH bpf-next v2] bpf, docs: Fix two struct names in btf.rst and kfuncs.rst
  2026-09-06 22:26 [PATCH bpf-next v2] bpf, docs: Fix two struct names in btf.rst and kfuncs.rst Karl Mehltretter
@ 2026-09-11 17:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-11 17:40 UTC (permalink / raw)
  To: Karl Mehltretter
  Cc: ast, daniel, andrii, eddyz87, memxor, martin.lau, song,
	yonghong.song, jolsa, bpf, corbet, linux-doc, skhan, rdunlap,
	void

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Mon,  7 Sep 2026 00:26:56 +0200 you wrote:
> struct btf_variable and struct bpf_cpmuask do not exist; the names are
> struct btf_var and struct bpf_cpumask.
> 
> Use them.
> 
> Fixes: f063c889c945 ("bpf: add specification for BTF Var and DataSec kinds")
> Fixes: 027bdec89364 ("bpf/docs: Document the nocast aliasing behavior of ___init")
> Assisted-by: LLM
> Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
> Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2] bpf, docs: Fix two struct names in btf.rst and kfuncs.rst
    https://git.kernel.org/bpf/bpf-next/c/cf95f22a06b2

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2026-09-11 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-06 22:26 [PATCH bpf-next v2] bpf, docs: Fix two struct names in btf.rst and kfuncs.rst Karl Mehltretter
2026-09-11 17:40 ` patchwork-bot+netdevbpf

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