From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFmWi-00017U-1b for qemu-devel@nongnu.org; Mon, 26 Jan 2015 11:28:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFmWh-0008EM-2i for qemu-devel@nongnu.org; Mon, 26 Jan 2015 11:28:35 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:55035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFmWg-0008Cj-TX for qemu-devel@nongnu.org; Mon, 26 Jan 2015 11:28:35 -0500 From: Peter Maydell Date: Mon, 26 Jan 2015 16:28:30 +0000 Message-Id: <1422289711-14103-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1422289711-14103-1-git-send-email-peter.maydell@linaro.org> References: <1422289711-14103-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH v2 1/2] 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: patches@linaro.org, Stefan Weil , Alexander Graf , Christian Borntraeger , Cornelia Huck , Richard Henderson 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. Signed-off-by: Peter Maydell Reviewed-by: Stefan Weil Message-id: 1419373100-17690-2-git-send-email-peter.maydell@linaro.org --- target-s390x/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index ab01bc0..1c3a8e8 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); } +#ifndef CONFIG_USER_ONLY static inline 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) { -- 1.9.1