diff mbox series

[bpf-next] bpf: add struct bpf_redir_neigh forward declaration to BPF helper defs

Message ID 20201028181204.111241-1-andrii@kernel.org
State Not Applicable
Delegated to: BPF Maintainers
Headers show
Series [bpf-next] bpf: add struct bpf_redir_neigh forward declaration to BPF helper defs | expand

Checks

Context Check Description
jkicinski/cover_letter success Link
jkicinski/fixes_present success Link
jkicinski/patch_count success Link
jkicinski/tree_selection success Clearly marked for bpf-next
jkicinski/subject_prefix success Link
jkicinski/source_inline success Was 0 now: 0
jkicinski/verify_signedoff success Link
jkicinski/module_param success Was 0 now: 0
jkicinski/build_32bit fail Errors and warnings before: 4 this patch: 4
jkicinski/kdoc success Errors and warnings before: 0 this patch: 0
jkicinski/verify_fixes success Link
jkicinski/checkpatch fail Link
jkicinski/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
jkicinski/header_inline success Link
jkicinski/stable success Stable not CCed

Commit Message

Andrii Nakryiko Oct. 28, 2020, 6:12 p.m. UTC
Forward-declare struct bpf_redir_neigh in bpf_helper_defs.h to avoid
compiler warning about unknown structs.

Fixes: ba452c9e996d ("bpf: Fix bpf_redirect_neigh helper api to support supplying nexthop")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
---
 scripts/bpf_helpers_doc.py | 1 +
 1 file changed, 1 insertion(+)

Comments

Toke Høiland-Jørgensen Oct. 28, 2020, 10:28 p.m. UTC | #1
Andrii Nakryiko <andrii@kernel.org> writes:

> Forward-declare struct bpf_redir_neigh in bpf_helper_defs.h to avoid
> compiler warning about unknown structs.
>
> Fixes: ba452c9e996d ("bpf: Fix bpf_redirect_neigh helper api to support supplying nexthop")
> Signed-off-by: Andrii Nakryiko <andrii@kernel.org>

Ah! I did actually include that in my local tree at some point, but
guess it never made it into the patch; sorry about that!

I guess this should go into the bpf tree, rather than bpf-next, no?

Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
diff mbox series

Patch

diff --git a/scripts/bpf_helpers_doc.py b/scripts/bpf_helpers_doc.py
index 6769caae142f..31484377b8b1 100755
--- a/scripts/bpf_helpers_doc.py
+++ b/scripts/bpf_helpers_doc.py
@@ -408,6 +408,7 @@  class PrinterHelpers(Printer):
             'struct bpf_perf_event_data',
             'struct bpf_perf_event_value',
             'struct bpf_pidns_info',
+            'struct bpf_redir_neigh',
             'struct bpf_sock',
             'struct bpf_sock_addr',
             'struct bpf_sock_ops',