bpf, docs: Fix the struct bpf_cpumask name in kfuncs.rst
Subsystems (2)
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
Signed-off-by Karl Mehltretter <[email protected]>
--- Documentation/bpf/kfuncs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/bpf/kfuncs.rst +1 -1
@@ -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
Quoted 7 lines · Karl Mehltretter
struct
bpf_cpmuaskdoes not exist; the name is structbpf_cpumask.Use it.
Fixes 027bdec89364 ("bpf/docs: Document the nocast aliasing behavior of ___init")Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>
Reviewed-by Randy Dunlap <[email protected]>
Thanks.
Quoted 17 lines
--- Documentation/bpf/kfuncs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/bpf/kfuncs.rst +1
-1@@ -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
Superseded by the combined v2 with the btf_var patch:
https://lore.kernel.org/r/[email protected]/
Thanks,
Karl