OpenCloudOS-Kernel/tools/testing/selftests/pidfd
Axel Rasmussen e2aa5e650b selftests: fixup build warnings in pidfd / clone3 tests
These are some trivial fixups, which were needed to build the tests with
clang and -Werror. The following issues are fixed:

- Remove various unused variables.
- In child_poll_leader_exit_test, clang isn't smart enough to realize
  syscall(SYS_exit, 0) won't return, so it complains we never return
  from a non-void function. Add an extra exit(0) to appease it.
- In test_pidfd_poll_leader_exit, ret may be branched on despite being
  uninitialized, if we have !use_waitpid. Initialize it to zero to get
  the right behavior in that case.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-02-04 13:07:07 -07:00
..
.gitignore selftests/pidfd: add pidfd setns tests 2020-05-13 11:41:22 +02:00
Makefile selftests/pidfd: add pidfd setns tests 2020-05-13 11:41:22 +02:00
config selftests: pidfd: add CONFIG_CHECKPOINT_RESTORE=y to config 2020-10-27 17:02:03 -06:00
pidfd.h pidfd: fix test failure due to stack overflow on some arches 2022-02-04 13:06:39 -07:00
pidfd_fdinfo_test.c pidfd: fix test failure due to stack overflow on some arches 2022-02-04 13:06:39 -07:00
pidfd_getfd_test.c selftests: pidfd: skip test on kcmp() ENOSYS 2020-10-27 17:01:45 -06:00
pidfd_open_test.c selftests: pidfd: fix compilation errors due to wait.h 2020-10-27 16:51:36 -06:00
pidfd_poll_test.c selftests: pidfd: fix compilation errors due to wait.h 2020-10-27 16:51:36 -06:00
pidfd_setns_test.c selftests: pidfd: drop needless linux/kcmp.h inclusion in pidfd_setns_test.c 2020-10-27 17:04:01 -06:00
pidfd_test.c selftests: fixup build warnings in pidfd / clone3 tests 2022-02-04 13:07:07 -07:00
pidfd_wait.c selftests: fixup build warnings in pidfd / clone3 tests 2022-02-04 13:07:07 -07:00