Skip to contentSkip to conversation

bpf, docs: Fix the struct btf_var name in btf.rst

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

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

PATCH 1/1 bpf, docs: Fix the struct btf_var name in btf.rst

struct btf_variable does not exist; the name is struct btf_var.

Use it.

Fixes f063c889c945 ("bpf: add specification for BTF Var and DataSec kinds")
Assisted-by LLM
---
 Documentation/bpf/btf.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/bpf/btf.rst +1 -1
index 3f05f17990ad..004aa1058d85 100644
@@ -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 {
Signature · 1 line
2.53.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Karl Mehltretter

struct btf_variable does not exist; the name is struct btf_var.

Use it.

Fixes f063c889c945 ("bpf: add specification for BTF Var and DataSec kinds")
Assisted-by LLM

Thanks.

Quoted 17 lines
---
 Documentation/bpf/btf.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/bpf/btf.rst +1 -1
index 3f05f17990ad..004aa1058d85 100644
@@ -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 {
Signature · 1 line
~Randy