diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-03-05 04:16:44 +0530 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-03-05 15:29:36 -0800 |
| commit | 0b206c6d1066f1ee85e4238a1e34d7437148a9a3 (patch) | |
| tree | 031c47ac94643a61260f4aee602290bac9ed5926 /lib/string_helpers.c | |
| parent | 4d1ea705d797e66edd70ffa708b83888a210a437 (diff) | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions