Skip to content

Commit 64f9ede

Browse files
tannerlovedavem330
authored andcommitted
selftests/net: psock_fanout: fix clang issues for target arch PowerPC
Clang 9 threw: warning: format specifies type 'unsigned short' but the argument has \ type 'int' [-Wformat] typeflags, PORT_BASE, PORT_BASE + port_off); Tested: make -C tools/testing/selftests TARGETS="net" run_tests Fixes: 77f65eb ("packet: packet fanout rollover during socket overload") Signed-off-by: Tanner Love <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 955cbe9 commit 64f9ede

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/net/psock_fanout.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ static int test_datapath(uint16_t typeflags, int port_off,
350350
int fds[2], fds_udp[2][2], ret;
351351

352352
fprintf(stderr, "\ntest: datapath 0x%hx ports %hu,%hu\n",
353-
typeflags, PORT_BASE, PORT_BASE + port_off);
353+
typeflags, (uint16_t)PORT_BASE,
354+
(uint16_t)(PORT_BASE + port_off));
354355

355356
fds[0] = sock_fanout_open(typeflags, 0);
356357
fds[1] = sock_fanout_open(typeflags, 0);

0 commit comments

Comments
 (0)