Received: from eggs.gnu.org ([2001:4830:134:3::10]:33188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIkJi-0000Ua-3g for qemu-devel@nongnu.org; Tue, 03 Feb 2015 15:43:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIkJd-00051B-NG for qemu-devel@nongnu.org; Tue, 03 Feb 2015 15:43:26 -0500 Received: from mail-qc0-x233.google.com ([2607:f8b0:400d:c01::233]:51513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIkJd-000516-IC for qemu-devel@nongnu.org; Tue, 03 Feb 2015 15:43:21 -0500 Received: by mail-qc0-f179.google.com with SMTP id w7so37260236qcr.10 for ; Tue, 03 Feb 2015 12:43:21 -0800 (PST) Sender: Richard Henderson From: Richard Henderson Date: Tue, 3 Feb 2015 12:42:58 -0800 Message-Id: <1422996181-22383-8-git-send-email-rth@twiddle.net> In-Reply-To: <1422996181-22383-1-git-send-email-rth@twiddle.net> References: <1422996181-22383-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 07/10] target-s390x: Mark check_privileged() as !CONFIG_USER_ONLY List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kbastian@mail.uni-paderborn.de, peter.maydell@linaro.org From: Peter Maydell 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 Reviewed-by: Stefan Weil Message-id: 1419373100-17690-2-git-send-email-peter.maydell@linaro.org Signed-off-by: Richard Henderson --- target-s390x/translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index e7a6c1d..8b36eca 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -317,12 +317,14 @@ static inline void gen_illegal_opcode(DisasContext *s) gen_program_exception(s, PGM_SPECIFICATION); } -static inline void check_privileged(DisasContext *s) +#ifndef CONFIG_USER_ONLY +static void check_privileged(DisasContext *s) { if (s->tb->flags & (PSW_MASK_PSTATE >> 32)) { gen_program_exception(s, PGM_PRIVILEGED); } } +#endif static TCGv_i64 get_address(DisasContext *s, int x2, int b2, int d2) { -- 2.1.0