mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
selftests/sched_ext: Add -fms-extensions to bpf build flags
Similar to commit835a507535("selftests/bpf: Add -fms-extensions to bpf build flags") and commit639f58a0f4("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>
This commit is contained in:
parent
9af832c0a7
commit
01a867c2e0
1 changed files with 2 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ BPF_CFLAGS = -g -D__TARGET_ARCH_$(SRCARCH) \
|
|||
$(CLANG_SYS_INCLUDES) \
|
||||
-Wall -Wno-compare-distinct-pointer-types \
|
||||
-Wno-incompatible-function-pointer-types \
|
||||
-Wno-microsoft-anon-tag \
|
||||
-fms-extensions \
|
||||
-O2 -mcpu=v3
|
||||
|
||||
# sort removes libbpf duplicates when not cross-building
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue