selftests/bpf: Change functions definitions to support GCC
authorCupertino Miranda <cupertino.miranda@oracle.com>
Tue, 7 May 2024 12:22:20 +0000 (13:22 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 7 May 2024 21:41:00 +0000 (14:41 -0700)
commitb2e086cb28aa358f7b5564888304908aff735827
treee18c2e0d23aac8b9637d55b8ddf01a1ca28d950e
parent207cf6e649ee551ab3bdb1cfe1b2848e6a4337a5
selftests/bpf: Change functions definitions to support GCC

The test_xdp_noinline.c contains 2 functions that use more then 5
arguments. This patch collapses the 2 last arguments in an array.
Also in GCC and ipa_sra optimization increases the number of arguments
used in function encap_v4. This pass disables the optimization for that
particular file.

Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20240507122220.207820-3-cupertino.miranda@oracle.com
tools/testing/selftests/bpf/progs/test_xdp_noinline.c