mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
Similar to commit835a507535("selftests/bpf: Add -fms-extensions to bpf build flags") and commit639f58a0f4("bpftool: Fix build warnings due to MS extensions") 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: Benjamin Tissoires <bentiss@kernel.org>