Skip to contentSkip to conversation

bpf, docs: Fix the struct bpf_cpumask name in kfuncs.rst

PATCH In review Karl Mehltretter 2 participants 3 messages Sep 5 – Sep 6

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf, docs: Fix the struct bpf_cpumask name in kfuncs.rst

struct bpf_cpmuask does not exist; the name is struct bpf_cpumask.

Use it.

Fixes 027bdec89364 ("bpf/docs: Document the nocast aliasing behavior of ___init")
Assisted-by LLM
---
 Documentation/bpf/kfuncs.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/bpf/kfuncs.rst +1 -1
index 85f73e0bbd0f..57831eda0a33 100644
@@ -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
Signature · 1 line
2.53.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Karl Mehltretter

struct bpf_cpmuask does not exist; the name is struct bpf_cpumask.

Use it.

Fixes 027bdec89364 ("bpf/docs: Document the nocast aliasing behavior of ___init")
Assisted-by LLM

Thanks.

Quoted 17 lines
---
 Documentation/bpf/kfuncs.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/bpf/kfuncs.rst +1 -1
index 85f73e0bbd0f..57831eda0a33 100644
@@ -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
Signature · 1 line
~Randy