diff options
| author | Axel Rasmussen <axelrasmussen@google.com> | 2022-01-27 14:11:15 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-23 12:01:06 +0100 |
| commit | e05dde47f52a4a8b027be0fa199d1419b2b4fc3c (patch) | |
| tree | 1f141ecb30e3fafb0cf91a2b335706e829658ad9 /scripts/checkpatch.pl | |
| parent | 531a56c2e0bfe7269b90eb68035e4d602847ca8b (diff) | |
selftests: fixup build warnings in pidfd / clone3 tests
[ Upstream commit e2aa5e650b07693477dff554053605976789fd68 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
