Skip to content

selftests/net: fix a few small compiler warnings

Willem de Bruijn linux-kselftest mptcp netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4selftests/net: ipsec: fix constant out of rangetools/testing/selftests/net/ipsec.c+2 -21 replyApplied
2/4selftests/net: fix a char signedness issuetools/testing/selftests/net/cmsg_sender.c+1 -10 repliesApplied
3/4selftests/net: unix: fix unused variable compiler warningtools/testing/selftests/net/af_unix/diag_uid.c+0 -10 repliesApplied
4/4selftests/net: mptcp: fix uninitialized variable warningstools/testing/selftests/net/mptcp/mptcp_connect.c tools/testing/selftests/net/mptcp/mptcp_inq.c+8 -143 repliesApplied

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchMatthieu BaertsDmitry Safonov
1/4R-b
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/4] selftests/net: fix a few small compiler warnings

From: Willem de Bruijn <[email protected]>

Observed a clang warning when backporting cmsg_sender. Ran the same build against all the .c files under selftests/net.

This is clang-14 with -Wall
Which is what tools/testing/selftests/net/Makefile also enables.

Willem de Bruijn (4):
selftests/net: ipsec: fix constant out of range selftests/net: fix a char signedness issue selftests/net: unix: fix unused variable compiler warning selftests/net: mptcp: fix uninitialized variable warnings

 tools/testing/selftests/net/af_unix/diag_uid.c    |  1 -
 tools/testing/selftests/net/cmsg_sender.c         |  2 +-
 tools/testing/selftests/net/ipsec.c               |  4 ++--
 tools/testing/selftests/net/mptcp/mptcp_connect.c | 11 ++++-------
 tools/testing/selftests/net/mptcp/mptcp_inq.c     | 11 ++++-------
 5 files changed, 11 insertions(+), 18 deletions(-)
Signature · 1 line
2.43.0.rc1.413.gea7ed67945-goog