]> www.infradead.org Git - users/hch/misc.git/commit
selftests/bpf: add -fno-strict-aliasing to BPF_CFLAGS
authorIhor Solodrai <ihor.solodrai@pm.me>
Mon, 6 Jan 2025 20:17:31 +0000 (20:17 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 6 Jan 2025 21:37:35 +0000 (13:37 -0800)
commitf44275e7155dc310d36516fc25be503da099781c
tree334f71a654100784daf2fd88bc97f60bdcca245d
parent859a7db4c7db84b06ca7fc9c60eb45a130c8fbec
selftests/bpf: add -fno-strict-aliasing to BPF_CFLAGS

Following the discussion at [1], set -fno-strict-aliasing flag for all
BPF object build rules. Remove now unnecessary <test>-CFLAGS variables.

[1] https://lore.kernel.org/bpf/20250106185447.951609-1-ihor.solodrai@pm.me/

CC: Jose E. Marchesi <jose.marchesi@oracle.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250106201728.1219791-1-ihor.solodrai@pm.me
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile