From patchwork Wed May 25 10:32:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 9135181 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6CC74607D7 for ; Wed, 25 May 2016 11:16:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 605F72824F for ; Wed, 25 May 2016 11:16:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 556F8282D4; Wed, 25 May 2016 11:16:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FSL_HELO_HOME, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4376E2824F for ; Wed, 25 May 2016 11:16:00 +0000 (UTC) Received: from localhost ([::1]:59020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5Wn9-00073F-2x for patchwork-qemu-devel@patchwork.kernel.org; Wed, 25 May 2016 07:15:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5W7S-0001WI-2S for qemu-devel@nongnu.org; Wed, 25 May 2016 06:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5W7H-0003Px-5U for qemu-devel@nongnu.org; Wed, 25 May 2016 06:32:52 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:32998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5W7G-0003Pc-TO for qemu-devel@nongnu.org; Wed, 25 May 2016 06:32:43 -0400 Received: by mail-lf0-x22b.google.com with SMTP id e131so16313457lfb.0 for ; Wed, 25 May 2016 03:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VPGDLCL/rCqghy7NcqnmsUTi7f/Y4Xxtb3AKl0/xUKk=; b=W5Yzhd9SSuC7hyVca7pDsm6jg+8I7KAPT5NR0kbsDx97eUlVtHLvceAvnLh2FrOVvh TokK5UtPSVzLrHd0p8WfjPS5cvPDOhNweu64TiDSuiC2kqkn0ChMTjqksHcpOO3PnBSb JXRO47o2felY258X7L4HCJGGXaQJ0+Cg9hGC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VPGDLCL/rCqghy7NcqnmsUTi7f/Y4Xxtb3AKl0/xUKk=; b=NrgXLpivA8EGLanZx3J0U/XxRNY8Ea7MsHMoLecmDVGRvtB5VC7qI1enbaHUsFB/L4 zKQpLwvSBZWuWmWwTESCnwAm5BJkmfCOwZwgMNYMjuJ94b9zD6L6aCUPQQqcv98TgaRC eo2po+ruJNffs+PLnmyxxpktLIiimoQN6lsUjE82QMm1+UCM/bNnVsmgw1xkCLbdyOIB JPVMfqsHVB1fcWSA8deIF6lZPrzpjQATJ7ApwF+ONd77n0KdfX3NOQLZUOwtsa3dpnmL Mp213bjwhHBzTnz95jYt82PCNM4FNuKCS+JKZmPR0B9Kz5knQpH23a4K1I5B8ZlI0im5 6Kuw== X-Gm-Message-State: ALyK8tLcmtzYOQwmwaXxX5784BbmXvV0gk1sXIBbPI/HW48t4IOpsbrUEayljhJQCaZcyOpN X-Received: by 10.25.83.11 with SMTP id h11mr769764lfb.36.1464172362211; Wed, 25 May 2016 03:32:42 -0700 (PDT) Received: from beaming.home (91-157-168-132.elisa-laajakaista.fi. [91.157.168.132]) by smtp.gmail.com with ESMTPSA id o75sm1379610lfi.9.2016.05.25.03.32.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 May 2016 03:32:41 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 25 May 2016 13:32:04 +0300 Message-Id: <5f13357c85bfa1e598d34f6b01ad79bfe441e386.1464153942.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22b Subject: [Qemu-devel] [PULL 32/38] linux-user: x86_64: Don't use 16-bit UIDs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Peter Maydell The 64-bit x86 syscall ABI uses 32-bit UIDs; only define USE_UID16 for 32-bit x86. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 9e2b3c2..34af15a 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -55,7 +55,8 @@ #define TARGET_IOC_NRBITS 8 #define TARGET_IOC_TYPEBITS 8 -#if defined(TARGET_I386) || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ +#if (defined(TARGET_I386) && defined(TARGET_ABI32)) \ + || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ || defined(TARGET_SPARC) \ || defined(TARGET_M68K) || defined(TARGET_SH4) || defined(TARGET_CRIS) /* 16 bit uid wrappers emulation */