linux/tools/testing/selftests/pidfd
Li Zhijian 3d98244130 selftests: pidfd: Fix compling warnings
Fix warnings and enable Wall.

pidfd_wait.c: In function ‘wait_nonblock’:
pidfd_wait.c:150:13: warning: unused variable ‘status’ [-Wunused-variable]
  150 |  int pidfd, status = 0;
      |             ^~~~~~
...
pidfd_test.c: In function ‘child_poll_exec_test’:
pidfd_test.c:438:1: warning: no return statement in function returning non-void [-Wreturn-type]
  438 | }
      | ^

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
v2: fix mistake assignment to pidfd
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-10-30 02:23:58 -06:00
..
.gitignore 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
Makefile selftests: pidfd: Fix compling warnings 2022-10-30 02:23:58 -06: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: pidfd: Fix compling warnings 2022-10-30 02:23:58 -06:00
pidfd_wait.c selftests: pidfd: Fix compling warnings 2022-10-30 02:23:58 -06:00
pidfd.h pidfd: fix test failure due to stack overflow on some arches 2022-02-04 13:06:39 -07:00