> diff --git a/tools/testing/selftests/bpf/prog_tests/btf_map_keyless.c 
> b/tools/testing/selftests/bpf/prog_tests/btf_map_keyless.c
> new file mode 100644
> index 0000000000000..43f0bb9bd5786
> --- /dev/null
> +++ b/tools/testing/selftests/bpf/prog_tests/btf_map_keyless.c
> @@ -0,0 +1,83 @@
> +// SPDX-License-Identifier: GPL-2.0
> +#define _GNU_SOURCE

This isn't a bug, but is the #define _GNU_SOURCE needed here?
Everything the file uses looks like plain POSIX (fopen/fgets/fclose from
stdio.h, unlink/close from unistd.h, plus libbpf/BTF calls), and
lib.mk already passes -D_GNU_SOURCE= to selftest builds.

> +#include <test_progs.h>
> +#include <bpf/btf.h>

[ ... ]


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/33300136294

Reply via email to