selftests/ipc: Fix msgque compiler warnings
authorKees Cook <keescook@chromium.org>
Mon, 8 Apr 2019 17:13:44 +0000 (10:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:40 +0000 (14:50 +0100)
commit938251ee1e23e91b51c5d2a2a31601fa487f85d7
tree370bd7134a79fbdfe16936270edc0047e0345947
parentda4c428a8209dcccb5b83ad4d4bae660e2adce76
selftests/ipc: Fix msgque compiler warnings

[ 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>
tools/testing/selftests/ipc/msgque.c