target-s390x: Mark check_privileged() as !CONFIG_USER_ONLY
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 26 Jan 2015 16:28:30 +0000 (16:28 +0000)
committerRichard Henderson <rth@twiddle.net>
Tue, 3 Feb 2015 20:25:48 +0000 (12:25 -0800)
commit8841d9dfc7f871cec7c3401a8a2d31ad34e881f7
tree714d6280a4c74ced62185ce30309d639c44dd72d
parent0774710f1bd052b05cc68ca3af06d8fc1a65664b
target-s390x: Mark check_privileged() as !CONFIG_USER_ONLY

The function check_privileged() is only used in the softmmu configs;
wrap it in an #ifndef CONFIG_USER_ONLY to avoid clang warnings on the
linux-user builds.

[rth: Remove inline marker too; it was only there to prevent exactly
this warning in GCC.]

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1419373100-17690-2-git-send-email-peter.maydell@linaro.org
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-s390x/translate.c