]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
selftests: pidfd: fix compilation errors due to wait.h
authorTommi Rantala <tommi.t.rantala@nokia.com>
Thu, 8 Oct 2020 12:26:22 +0000 (15:26 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:06:18 +0000 (12:06 +0100)
commit794fde94d560429318485ee0b044c43f40c1604b
tree7369dbf5b92fad3895a6891189cca907397a675d
parent22555d066ef2c0a0e6ecba928896ec0c08b53ad7
selftests: pidfd: fix compilation errors due to wait.h

BugLink: https://bugs.launchpad.net/bugs/1905618
[ Upstream commit 1948172fdba5ad643529ddcd00a601c0caa913ed ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
tools/testing/selftests/pidfd/pidfd_open_test.c
tools/testing/selftests/pidfd/pidfd_poll_test.c