Skip to content

Commit 38847fb

Browse files
iii-ikernel-patches-bot
authored andcommitted
server_map's value size is 8, but the test tries to put an int there.
This sort of works on x86 (unless followed by non-0), but hard fails on s390. Fix by using __s64 instead of int. Fixes: 2d7824f ("selftests: bpf: Add test for sk_assign") Signed-off-by: Ilya Leoshkevich <[email protected]> --- v1->v2: Use __s64. tools/testing/selftests/bpf/prog_tests/sk_assign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
1 parent 2f2e1f6 commit 38847fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/prog_tests/sk_assign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void test_sk_assign(void)
265265
TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false),
266266
TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true),
267267
};
268-
int server = -1;
268+
__s64 server = -1;
269269
int server_map;
270270
int self_net;
271271
int i;

0 commit comments

Comments
 (0)