]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selftests/ipc: Fix msgque compiler warnings
authorKees Cook <keescook@chromium.org>
Mon, 8 Apr 2019 17:13:44 +0000 (10:13 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitf640c7d08bc6e7ed8bd7bce26885e9f1468037b2
treed619a2bcbb9f514aee178e751a09ae9723803f2a
parent0f59c4c00b5a3ddc398ad37738c6a8655660568d
selftests/ipc: Fix msgque compiler warnings

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit a147faa96f832f76e772b1e448e94ea84c774081 ]

This fixes the various compiler warnings when building the msgque
selftest. The primary change is using sys/msg.h instead of linux/msg.h
directly to gain the API declarations.

Fixes: 3a665531a3b7 ("selftests: IPC message queue copy feature test")
Signed-off-by: Kees Cook <keescook@chromium.org>
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: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/ipc/msgque.c