Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753518AbdCAWAp (ORCPT ); Wed, 1 Mar 2017 17:00:45 -0500 Received: from mail-co1nam03on0050.outbound.protection.outlook.com ([104.47.40.50]:2561 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751055AbdCAV7u (ORCPT ); Wed, 1 Mar 2017 16:59:50 -0500 Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=caviumnetworks.com; From: Yury Norov To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann , Catalin Marinas Cc: Yury Norov , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , schwidefsky@de.ibm.com, broonie@kernel.org, Joseph Myers , christoph.muellner@theobroma-systems.com, szabolcs.nagy@arm.com, klimov.linux@gmail.com, Nathan_Lynch@mentor.com, agraf@suse.de, Prasun.Kapoor@caviumnetworks.com, geert@linux-m68k.org, philipp.tomsich@theobroma-systems.com, manuel.montezelo@gmail.com, linyongting@huawei.com, davem@davemloft.net, zhouchengming1@huawei.com Subject: [PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants Date: Thu, 2 Mar 2017 00:49:09 +0530 Message-Id: <1488395968-14313-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> References: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [27.97.135.110] X-ClientProxiedBy: VI1PR0901CA0067.eurprd09.prod.outlook.com (10.167.203.163) To SN1PR07MB2253.namprd07.prod.outlook.com (10.164.47.147) X-MS-Office365-Filtering-Correlation-Id: 62c3d185-377b-44b2-b39c-08d460d7f170 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN1PR07MB2253; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2253;3:h3ReObx2AosyrlFZaiIb9MPwWPFPWS8HJOgz5KvjR5OsjkEnLTNxMSUmnRDuOABQ5QmC9dFlm7p779a58wPX+bmfN8z0ED2/x0RG2Cw+BvF4sc2DatHsmWgri/5wyKSQQBwQJpVzATOlld7w2cGSFzD7B9kYresKGSsgk3hK++ydgRqeHIs9a1ZpQ0FAcgfN+1TzTro4FFpwhJurVpVRuvZQGsI07iUDG4feABNT7+FiX1w0GEskZtS12CKUZocAPlXKckPyc654c69Mo2J5Gw==;25:f89HtbnXwMjJ3kMlA60vEG1n3fDvGIf06D9oJDCwmDsWpn4b/milyp9qQdfS5tTBwPb5n8bSSczDKSN8tI9xZAS5kU4y6r68s5pUgCnbs1spgmZ9vtrPBp5lTbr7n5yvF8v2Unu740n7vQ4QpGS/KikaDBs8KPVCAQKsblfofXWUH9TRpHvJybCWaPryGRs12VKXlWbfQWbMCxrs+4lRcQmgbt6e/SdOLzll+CV7+Sa4MSM8kL9L3y7QwxSbYohP9bzlPB4c08A+8g4DTN3RdMGFSKn5NdcLUHIbxuyTLkNZM5yNHx0kNiDyS6g05iXMT62GcsgnZI/68oO0IqXGQBDnVIWsSi5jgdnvVan0Lblj1i8+W5DoOJRg3csdKUrLAFDGeegfs+eV7tKAW3JXsxwNIVqEpoVH7A5RFM5ZM+QZwItGiOCX5fR8EBuL/rdcSpx/YL1naPtXjU10hx+BwA== X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2253;31:WNzLblRGT49ZtGRjjdYP4kAijSOQJ2zm9roj7pkehO6FOAFIQ77L7HWxPW87xqB4JrQ/GKIgUbcnPX+6xDOfseWf9chhfcnOnd/oyWhhkw+UCD2q3RauJ3h5zmX9+Vn5faLp3j8y0PVcImyeN0Hcytbqlw1DA9zbagoP4bw2w16NISAma+za/iDuqk5fpy+4Ku0i5THBbKITnrJiX5iXXVJTR2DXWXBAC3X6U6++k0OIaBOdWUCHWs3ZR84pe0ub;20:jrtthS53smTeqh4FD+02AqosNf7hXByDOIW40AdbLBfIlZZKEHemCU1wOwJRmckVQgCqoL3OYvm19KZcsrb/fb9jUHBKNBAufbQ4xh7AMOeMRcfNR0PW2j3X+phgJCq3Z50yNg5RCV4L937zCBDKDb4xKNrNBI1QrbRXz0+tNe4oIAxdTJBGYEEgPOTtuIPinFkf3WEghaZR678a1npmgqKCD6/3d2auM5FPHkQhy/FaIXJBuD0DiynfQEkjA1LeWJ9orKHg7OF/42Q/4buDswbqijT3Ovz4h40l8bOgso/kgSQC2p/946HLZYj9FVu7NEzvWnFKbZZNul9i9qjBk3TjyH2Ri5+15RVHwSV7aB7eurB331+p4ZfP5j/S7+lXH/4ATCF0r47H79gDvNiU9A/Z+IcV0EoXCdawxhxr7kaogIEAmgROMKwy/IcYXsImUHE0SYgPLj55BfTFEG+buIXOm+EsLCLml/vaEnDAXps5Y7FP8smeEprscPfvtXiMQMJI7GDLm/xa9Hf5ggHzjRwzxm4l6R9fczzS5Ta/fI2RQW+MLbZ6crakfNXF+9e7tIrpl7aCWBUX7BLyJmTieupXkYSQgpj8Meyjz1QZ7u4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(20161123560025)(6072148);SRVR:SN1PR07MB2253;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB2253; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2253;4:Ak/2CLdKv7Jwhi7kgNCLYXduqTUdU8dCJXR+QqLC4Lu6GBGYCdJwJICz7LGM+uvZQfsODYUcARHe3MfIzDUPAyhPt0V09G3BQxsHYFgMH+5BNrzw2zs+QG1lJB0l/2u0RqyWMN6zejssGgy4a8lPLrW/oB6w5cTrJE7HWL58zr35NBL8gGbhhbCpHbeVS57daimQeH2YCfL7ZgAHH/ZxgiDi1dRgE7+k2lCZX2KoEBcXWDH0mGdOG73gh+X+6N1kIWQ+IMZDZ8ND4q/h2AQYlnp/B4Mi0CCsMQgWXUxbovmDRDbk0xcPcv0hljuyLYoV/JTvC/REDOGjYvqyma1DklOKIR6QnJdTQcS2fLvEJ6+WN9wF9vg1ILXMcHqj3gb7W9tFlVGTjMiRAMVzfy5PWR8KbhBmNj4mJk4xSCEE/fGea9GMnttGKlIaCW5z5Z9N0tGEHHEyjq/73EgXGUCGOfGUESdQ6mRh95csY7DU4Yae8vqqk2krzzzPRvA+VR8t1sA6PiFLg1/oSCMAZT2Vmk5lLwT3sbhPjBwULRIwd713bowC3HmkUECTs2Aze3CR1sJ5Sqr0eNDwNpD9vQ3+3KQAnmEogokVZCYTKPQfmBo= X-Forefront-PRVS: 0233768B38 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(2906002)(305945005)(7736002)(76176999)(7416002)(33646002)(50986999)(76506005)(47776003)(3846002)(4326008)(6496005)(6116002)(38730400002)(66066001)(48376002)(81166006)(189998001)(6486002)(42186005)(36756003)(50226002)(92566002)(2950100002)(50466002)(25786008)(8676002)(5009440100003)(5660300001)(6666003)(5003940100001)(53936002)(54906002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2253;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2253;23:WJCPcm4yvYt6Q1q/IVAvAHHSwUPgFNhnEVVC2oTVh?= =?us-ascii?Q?USPq442/pgXLAAOsvC4+9kaufZ0bswLyb6oGGxmEsi2WvFow0dm+rHiV8YQZ?= =?us-ascii?Q?NEWx1t12A+T3s+S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9BuIXWDrdpzr+HI5RRmsu5XRw/qhgXUflRMEN+G00diYUycxq9tgJxizKSqQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2017 19:19:54.2887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2253 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2141 Lines: 52 The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked-by: Chris Metcalf [for tile] --- arch/tile/kernel/compat.c | 3 +++ include/uapi/asm-generic/unistd.h | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/tile/kernel/compat.c b/arch/tile/kernel/compat.c index bdaf71d..3b7853c 100644 --- a/arch/tile/kernel/compat.c +++ b/arch/tile/kernel/compat.c @@ -103,6 +103,9 @@ COMPAT_SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned int, offset_high, #define compat_sys_readahead sys32_readahead #define sys_llseek compat_sys_llseek +#define sys_openat compat_sys_openat +#define sys_open_by_handle_at compat_sys_open_by_handle_at + /* Call the assembly trampolines where necessary. */ #define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn #define sys_clone _sys_clone diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 9b1462e..a6062be 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -178,7 +178,7 @@ __SYSCALL(__NR_fchownat, sys_fchownat) #define __NR_fchown 55 __SYSCALL(__NR_fchown, sys_fchown) #define __NR_openat 56 -__SC_COMP(__NR_openat, sys_openat, compat_sys_openat) +__SYSCALL(__NR_openat, sys_openat) #define __NR_close 57 __SYSCALL(__NR_close, sys_close) #define __NR_vhangup 58 @@ -676,8 +676,7 @@ __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark) #define __NR_name_to_handle_at 264 __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at) #define __NR_open_by_handle_at 265 -__SC_COMP(__NR_open_by_handle_at, sys_open_by_handle_at, \ - compat_sys_open_by_handle_at) +__SYSCALL(__NR_open_by_handle_at, sys_open_by_handle_at) #define __NR_clock_adjtime 266 __SC_COMP(__NR_clock_adjtime, sys_clock_adjtime, compat_sys_clock_adjtime) #define __NR_syncfs 267 -- 2.7.4