aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/pidfd/pidfd_open_test.c
diff options
context:
space:
mode:
authorTommi Rantala <tommi.t.rantala@nokia.com>2020-10-08 15:26:22 +0300
committerShuah Khan <skhan@linuxfoundation.org>2020-10-27 16:51:36 -0600
commit1948172fdba5ad643529ddcd00a601c0caa913ed (patch)
tree20707015c01f5c42fc1e9fa30b3ae8869cd7aad7 /tools/testing/selftests/pidfd/pidfd_open_test.c
parentselftests: filter kselftest headers from command in lib.mk (diff)
downloadlinux-dev-1948172fdba5ad643529ddcd00a601c0caa913ed.tar.xz
linux-dev-1948172fdba5ad643529ddcd00a601c0caa913ed.zip
selftests: pidfd: fix compilation errors due to wait.h
Drop unneeded <linux/wait.h> header inclusion to fix pidfd compilation errors seen in Fedora 32: In file included from pidfd_open_test.c:9: ../../../../usr/include/linux/wait.h:17:16: error: expected identifier before numeric constant 17 | #define P_ALL 0 | ^ Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com> Reviewed-by: Kees Cook <keescook@chromium.org> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/pidfd/pidfd_open_test.c')
-rw-r--r--tools/testing/selftests/pidfd/pidfd_open_test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/pidfd_open_test.c b/tools/testing/selftests/pidfd/pidfd_open_test.c
index b9fe75fc3e51..8a59438ccc78 100644
--- a/tools/testing/selftests/pidfd/pidfd_open_test.c
+++ b/tools/testing/selftests/pidfd/pidfd_open_test.c
@@ -6,7 +6,6 @@
#include <inttypes.h>
#include <limits.h>
#include <linux/types.h>
-#include <linux/wait.h>
#include <sched.h>
#include <signal.h>
#include <stdbool.h>