Home
last modified time | relevance | path

Searched hist:"0 b206c6d1066f1ee85e4238a1e34d7437148a9a3" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_bpf.cdiff 0b206c6d1066f1ee85e4238a1e34d7437148a9a3 Fri Mar 04 16:46:44 CST 2022 Kumar Kartikeya Dwivedi <memxor@gmail.com> bpf: Replace __diag_ignore with unified __diag_ignore_all

Currently, -Wmissing-prototypes warning is ignored for GCC, but not
clang. This leads to clang build warning in W=1 mode. Since the flag
used by both compilers is same, we can use the unified __diag_ignore_all
macro that works for all supported versions and compilers which have
__diag macro support (currently GCC >= 8.0, and Clang >= 11.0).

Also add nf_conntrack_bpf.h include to prevent missing prototype warning
for register_nf_conntrack_bpf.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220304224645.3677453-8-memxor@gmail.com
/openbmc/linux/net/bpf/
H A Dtest_run.cdiff 0b206c6d1066f1ee85e4238a1e34d7437148a9a3 Fri Mar 04 16:46:44 CST 2022 Kumar Kartikeya Dwivedi <memxor@gmail.com> bpf: Replace __diag_ignore with unified __diag_ignore_all

Currently, -Wmissing-prototypes warning is ignored for GCC, but not
clang. This leads to clang build warning in W=1 mode. Since the flag
used by both compilers is same, we can use the unified __diag_ignore_all
macro that works for all supported versions and compilers which have
__diag macro support (currently GCC >= 8.0, and Clang >= 11.0).

Also add nf_conntrack_bpf.h include to prevent missing prototype warning
for register_nf_conntrack_bpf.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220304224645.3677453-8-memxor@gmail.com