Skip to content

selftests: Fix build warnings and errors

Guenter Roeck bpf linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest13 patches 6 repliesIn review 3 of 13 applied

Patches in v2 3 of 13 applied

#Subject and filesSizeRepliesApplied
1/13clone3: clone3_cap_checkpoint_restore: Fix build warningstools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c+0 -40 replies
2/13selftests: ntsync: Fix build warningstools/testing/selftests/drivers/ntsync/ntsync.c+2 -21 reply
3/13selftests/filesystems: fclog: Fix build warnings and errorstools/testing/selftests/filesystems/fclog.c+1 -00 replies
4/13selftests/filesystems: file_stressor: Fix build warningtools/testing/selftests/filesystems/file_stressor.c+0 -20 replies
5/13selftests/filesystems: anon_inode_test: Fix build warningtools/testing/selftests/filesystems/anon_inode_test.c+1 -00 replies
6/13selftest: af_unix: Support compilers without flex-array-member-not-at-end supporttools/testing/selftests/net/af_unix/Makefile+6 -10 repliesApplied
7/13selftest/futex: Comment out test_futex_mpoltools/testing/selftests/futex/functional/futex_numa_mpol.c+2 -00 replies
8/13selftests: net: netlink-dumps: Avoid uninitialized variable warningtools/testing/selftests/net/netlink-dumps.c+1 -12 replies
9/13selftests/seccomp: Fix build warningtools/testing/selftests/seccomp/seccomp_bpf.c+2 -11 reply
10/13selftests: net: Fix build warningstools/testing/selftests/net/lib/ksft.h+4 -20 repliesApplied
11/13selftests/fs/mount-notify: Fix build warningtools/testing/selftests/filesystems/mount-notify/mount-notify_test.c+2 -10 replies
12/13selftests/fs/mount-notify-ns: Fix build warningtools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c+2 -12 replies
13/13selftests: net: tfo: Fix build warningtools/testing/selftests/net/tfo.c+2 -10 repliesApplied

Reviews trailers per patch

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

PatchKees CookElizabeth Figura
1/13
2/13R-b
3/13
4/13
5/13
6/13
7/13
8/13
9/13R-b
10/13
11/13
12/13
13/13

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

Read the v2 thread

Cover letter [PATCH v2 00/13] selftests: Fix build warnings and errors

This series fixes build warnings and errors observed when trying to build selftests.

v2: Emphasize that the patch series fixes build warnings and errors
which are seen even if -Werror is not provided.
Fix usage of cc-option.
For "ignoring return value" warnings, use perror() to display an error message if the affected function returns an error.

----------------------------------------------------------------
Guenter Roeck (13):
clone3: clone3_cap_checkpoint_restore: Fix build warnings
selftests: ntsync: Fix build warnings
selftests/filesystems: fclog: Fix build warnings and errors selftests/filesystems: file_stressor: Fix build warning selftests/filesystems: anon_inode_test: Fix build warning
selftest: af_unix: Support compilers without flex-array-member-not-at-end support selftest/futex: Comment out test_futex_mpol
selftests: net: netlink-dumps: Avoid uninitialized variable warning selftests/seccomp: Fix build warning
selftests: net: Fix build warnings
selftests/fs/mount-notify: Fix build warning selftests/fs/mount-notify-ns: Fix build warning
selftests: net: tfo: Fix build warning

 tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c     | 4 ----
 tools/testing/selftests/drivers/ntsync/ntsync.c                    | 4 ++--
 tools/testing/selftests/filesystems/anon_inode_test.c              | 1 +
 tools/testing/selftests/filesystems/fclog.c                        | 1 +
 tools/testing/selftests/filesystems/file_stressor.c                | 2 --
 .../testing/selftests/filesystems/mount-notify/mount-notify_test.c | 3 ++-
 .../selftests/filesystems/mount-notify/mount-notify_test_ns.c      | 3 ++-
 tools/testing/selftests/futex/functional/futex_numa_mpol.c         | 2 ++
 tools/testing/selftests/net/af_unix/Makefile                       | 7 ++++++-
 tools/testing/selftests/net/lib/ksft.h                             | 6 ++++--
 tools/testing/selftests/net/netlink-dumps.c                        | 2 +-
 tools/testing/selftests/net/tfo.c                                  | 3 ++-
 tools/testing/selftests/seccomp/seccomp_bpf.c                      | 3 ++-
 13 files changed, 25 insertions(+), 16 deletions(-)