From patchwork Sat May 24 07:02:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 30879 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D77972066E for ; Sat, 24 May 2014 07:05:40 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rq2sf23489508pbb.1 for ; Sat, 24 May 2014 00:05:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:to:to:to:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=O6CwcboCvKKL/tzGGLlljaQJC4x75MdckDLfpdYfDdg=; b=YT9UeiUruwQyHt9JRM9skEYzzTmzr62RzDMWFyMxOEX2E2DYlL7n1/5XBh74w1Kc64 +hYmRWD8AXM7lR/XtmI/PTdhNS2xDCD1juEz1mCorQVmwWVf+1+2Bdk87HAKIEPCdq45 2bH8VR/qvHOmH9eZ6XDdnLufc2jQi46AGZSi4AYt/qiLad9tqwZ9NtnBOygwbv5sRCQg y9e7MoZNgPIaFMeVgWsgUpTS98kZ2Iqrhocb9+Yb/g5eU7faSZ6tpMMGyQ784jllkbjn os7OswrBOpI8Nod/q2LPUb5/JOLV7IqGTmt9dTh69an8yNCXDbjdjWzklD9WOqCvq72E ++TA== X-Gm-Message-State: ALoCoQk6fg0nw8P9b6opKm80IDBicByI/4OV+NOKTN3Bf7wyhjsu41nTEWc17F0kLH8XhNs8D7Jk X-Received: by 10.66.66.196 with SMTP id h4mr4493249pat.22.1400915140198; Sat, 24 May 2014 00:05:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.4 with SMTP id t4ls2041079qge.1.gmail; Sat, 24 May 2014 00:05:40 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr8684065vcg.16.1400915140070; Sat, 24 May 2014 00:05:40 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id y1si3070569veb.50.2014.05.24.00.05.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 May 2014 00:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id jz11so7254923veb.21 for ; Sat, 24 May 2014 00:05:40 -0700 (PDT) X-Received: by 10.58.23.6 with SMTP id i6mr8652146vef.12.1400915140005; Sat, 24 May 2014 00:05:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp87518vcb; Sat, 24 May 2014 00:05:39 -0700 (PDT) X-Received: by 10.140.22.209 with SMTP id 75mr12811975qgn.4.1400915139665; Sat, 24 May 2014 00:05:39 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id h74si6047218qgd.79.2014.05.24.00.05.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 May 2014 00:05:39 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wo607-0005wk-T8; Sat, 24 May 2014 07:04:15 +0000 Received: from mail-ie0-f179.google.com ([209.85.223.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wo5yf-0004lZ-Ei for linux-arm-kernel@lists.infradead.org; Sat, 24 May 2014 07:02:46 +0000 Received: by mail-ie0-f179.google.com with SMTP id rd18so6027623iec.10 for ; Sat, 24 May 2014 00:02:23 -0700 (PDT) X-Received: by 10.50.122.67 with SMTP id lq3mr10101064igb.8.1400914943874; Sat, 24 May 2014 00:02:23 -0700 (PDT) Received: from localhost.localdomain (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPSA id j13sm9995228igf.11.2014.05.24.00.02.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 00:02:23 -0700 (PDT) Received: from localhost.localdomain (apinskidesktop [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4O72LGY009774 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sat, 24 May 2014 00:02:21 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s4O72LWr009773; Sat, 24 May 2014 00:02:21 -0700 From: Andrew Pinski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/24] Allow a 32bit ABI to use the naming of the 64bit ABI syscalls to avoid confusion of not splitting the registers. Date: Sat, 24 May 2014 00:02:03 -0700 Message-Id: <1400914939-9708-9-git-send-email-apinski@cavium.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1400914939-9708-1-git-send-email-apinski@cavium.com> References: <1400914939-9708-1-git-send-email-apinski@cavium.com> To: linux-arm-kernel@lists.infradead.org To: linux-kernel@vger.kernel.org To: linux-arch@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140524_000245_604111_D31ABD7A X-CRM114-Status: GOOD ( 12.95 ) X-Spam-Score: 1.8 (+) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.223.179 listed in list.dnswl.org] 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list Cc: Andrew Pinski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: apinski@cavium.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 In the ARM64 ILP32 case, we want to say the syscalls that normally would pass 64bit as two arguments are now passing as one so want to use the 64bit naming scheme. Thanks, Andrew Pinski Signed-off-by: Andrew Pinski --- include/uapi/asm-generic/unistd.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 3336406..0648659 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -875,8 +875,11 @@ __SYSCALL(__NR_fork, sys_ni_syscall) * they take different names. * Here we map the numbers so that both versions * use the same syscall table layout. + * For 32bit abis where 64bit can be passed via one + * register, use the same naming as the 64bit ones + * as they will only have a 64 bit off_t. */ -#if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT) +#if (__BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)) || defined(__SYSCALL_NONCOMPAT) #define __NR_fcntl __NR3264_fcntl #define __NR_statfs __NR3264_statfs #define __NR_fstatfs __NR3264_fstatfs