]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Add -fms-extensions to bpf build flags
authorAlexei Starovoitov <ast@kernel.org>
Thu, 4 Dec 2025 04:14:30 +0000 (20:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 4 Dec 2025 04:20:11 +0000 (20:20 -0800)
commit835a50753579aa8368a08fca307e638723207768
tree6919557c9a0f5d6407a5ee2967ce3d3cf611776e
parent8f7aa3d3c7323f4ca2768a9e74ebbe359c4f8f88
selftests/bpf: Add -fms-extensions to bpf build flags

The kernel is now built with -fms-extensions, therefore
generated vmlinux.h contains types like:
struct slab {
   ..
   struct freelist_counters;
};

Use -fms-extensions and -Wno-microsoft-anon-tag flags
to build bpf programs that #include "vmlinux.h"

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile