OSDN Git Service

scripts/bpf: Fix xdp_md forward declaration typo
authorAndrii Nakryiko <andriin@fb.com>
Thu, 10 Oct 2019 04:25:34 +0000 (21:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 10 Oct 2019 04:43:42 +0000 (21:43 -0700)
Fix typo in struct xpd_md, generated from bpf_helpers_doc.py, which is
causing compilation warnings for programs using bpf_helpers.h

Fixes: 7a387bed47f7 ("scripts/bpf: teach bpf_helpers_doc.py to dump BPF helper definitions")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191010042534.290562-1-andriin@fb.com
scripts/bpf_helpers_doc.py

index 15d3d83..7df9ce5 100755 (executable)
@@ -418,7 +418,7 @@ class PrinterHelpers(Printer):
 
             'struct __sk_buff',
             'struct sk_msg_md',
-            'struct xpd_md',
+            'struct xdp_md',
     ]
     known_types = {
             '...',