aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/pidfd/Makefile
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@fujitsu.com>2022-09-01 03:17:34 +0000
committerShuah Khan <skhan@linuxfoundation.org>2022-10-30 02:23:58 -0600
commit3d982441308ebdf713771c8a85c23d9b8b66b4d4 (patch)
tree3ca6506dc27c4f9cd0c15693b46444692d097c1c /tools/testing/selftests/pidfd/Makefile
parentksefltests: pidfd: Fix wait_states: Test terminated by timeout (diff)
downloadlinux-dev-3d982441308ebdf713771c8a85c23d9b8b66b4d4.tar.xz
linux-dev-3d982441308ebdf713771c8a85c23d9b8b66b4d4.zip
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>
Diffstat (limited to 'tools/testing/selftests/pidfd/Makefile')
-rw-r--r--tools/testing/selftests/pidfd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile
index f4a2f28f926b..778b6cdc8aed 100644
--- a/tools/testing/selftests/pidfd/Makefile
+++ b/tools/testing/selftests/pidfd/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-CFLAGS += -g -I../../../../usr/include/ -pthread
+CFLAGS += -g -I../../../../usr/include/ -pthread -Wall
TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test \
pidfd_poll_test pidfd_wait pidfd_getfd_test pidfd_setns_test