Skip to content

Commit 01a867c

Browse files
Zhao Mengmenghtejun
authored andcommitted
selftests/sched_ext: Add -fms-extensions to bpf build flags
Similar to commit 835a507 ("selftests/bpf: Add -fms-extensions to bpf build flags") and commit 639f58a ("bpftool: Fix build warnings due to MS extensions") Fix "declaration does not declare anything" warning by using -fms-extensions and -Wno-microsoft-anon-tag flags to build bpf programs that #include "vmlinux.h" Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn> Reviewed-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 9af832c commit 01a867c

File tree

1 file changed

+2
-0
lines changed
  • tools/testing/selftests/sched_ext

1 file changed

+2
-0
lines changed

tools/testing/selftests/sched_ext/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ BPF_CFLAGS = -g -D__TARGET_ARCH_$(SRCARCH) \
9393
$(CLANG_SYS_INCLUDES) \
9494
-Wall -Wno-compare-distinct-pointer-types \
9595
-Wno-incompatible-function-pointer-types \
96+
-Wno-microsoft-anon-tag \
97+
-fms-extensions \
9698
-O2 -mcpu=v3
9799

98100
# sort removes libbpf duplicates when not cross-building

0 commit comments

Comments
 (0)