Skip to content

Commit 835a507

Browse files
author
Alexei Starovoitov
committed
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 <[email protected]>
1 parent 8f7aa3d commit 835a507

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ BPF_CFLAGS = -g -Wall -Werror -D__TARGET_ARCH_$(SRCARCH) $(MENDIAN) \
437437
-I$(abspath $(OUTPUT)/../usr/include) \
438438
-std=gnu11 \
439439
-fno-strict-aliasing \
440+
-Wno-microsoft-anon-tag \
441+
-fms-extensions \
440442
-Wno-compare-distinct-pointer-types \
441443
-Wno-initializer-overrides \
442444
#

0 commit comments

Comments
 (0)