Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/sched_ext: Add -fms-extensions to bpf build flags

Similar to commit 835a50753579 ("selftests/bpf: Add -fms-extensions to
bpf build flags") and commit 639f58a0f480 ("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>

authored by

Zhao Mengmeng and committed by
Tejun Heo
01a867c2 9af832c0

+2
+2
tools/testing/selftests/sched_ext/Makefile
··· 93 93 $(CLANG_SYS_INCLUDES) \ 94 94 -Wall -Wno-compare-distinct-pointer-types \ 95 95 -Wno-incompatible-function-pointer-types \ 96 + -Wno-microsoft-anon-tag \ 97 + -fms-extensions \ 96 98 -O2 -mcpu=v3 97 99 98 100 # sort removes libbpf duplicates when not cross-building