This series fixes a bad calculation of strict mode in two places. It also updates libbpf to make it easier for the users to disable a specific LIBBPF_STRICT_* flag. v1 -> v2: - remove check in libbpf_set_strict_mode() - split in different commits v1: https://lore.kernel.org/bpf/20220204220435.301896-1-mauricio@xxxxxxxxxx/ Mauricio Vásquez (3): libbpf: Remove mode check in libbpf_set_strict_mode() bpftool: Fix strict mode calculation selftests/bpf: Fix strict mode calculation tools/bpf/bpftool/main.c | 5 +---- tools/lib/bpf/libbpf.c | 8 -------- tools/testing/selftests/bpf/prog_tests/btf.c | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) -- 2.25.1