From patchwork Mon Jan 9 11:29:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9504401 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 760906071A for ; Mon, 9 Jan 2017 11:31:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76B16284AC for ; Mon, 9 Jan 2017 11:31:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B07F284AE; Mon, 9 Jan 2017 11:31:11 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A471F284AC for ; Mon, 9 Jan 2017 11:31:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cQYAL-0001sB-Ce; Mon, 09 Jan 2017 11:31:05 +0000 Received: from mail-by2nam01on0067.outbound.protection.outlook.com ([104.47.34.67] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQYAD-0001LR-3S for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2017 11:30:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8ncNOfRGiSCXc6ye/OOEpb8ZYt3RRh55wWX0aNMPtc8=; b=V+WkmUBxoW8DYGC5RLB/bMiUkno2ZYFvT5LKaNiZd/fKML7dC8BLWc3X82Pt0Bss8SY5MYKmoFFnG7S+xNFY0Vl6ujQNwka4u+E1NySMG70SBuRZN60cVrVi4s5eBruW8XkkQ2M0D2PR70E7Y5/JlEGTZtu2/S467OlAIhcRRDA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (103.78.20.242) by SN1PR07MB2255.namprd07.prod.outlook.com (10.164.47.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Mon, 9 Jan 2017 11:30:30 +0000 From: Yury Norov To: , , , "linux-arch @ vger . kernel . org Arnd Bergmann" , Catalin Marinas Subject: [PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants Date: Mon, 9 Jan 2017 16:59:38 +0530 Message-ID: <1483961397-8599-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> References: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [103.78.20.242] X-ClientProxiedBy: AM4PR0701CA0004.eurprd07.prod.outlook.com (10.165.102.14) To SN1PR07MB2255.namprd07.prod.outlook.com (10.164.47.149) X-MS-Office365-Filtering-Correlation-Id: 81578c86-43c2-4c6f-e5b3-08d43882ebaa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:SN1PR07MB2255; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2255; 3:Nz0NyEn3if/11r3eeNFrO1xJ+IanXeum40xiBMm+GiV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lGS4LfQIc3Y01I7P8TteXi9nA/5ZE4 X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2255; 31:wme6yXn2Tifv1AWuRAVzCDokxFnlW/p6M5rjYCUxqupT/Lu0kIC7N9nae1hkb3L+hFqBvgdUi9BkhlJbw/JKuMdC1OtvGIpqnXXDy55PCWfTVpt2tI1qhfqfVg0fphjTo6T1btZHxk+McstG2t0xId/Vz6xW1exsn0OxY2StYoM8Ryy1kcbof8UvVZyQJgA+fuls7WBurqEcJJlLvCQke3HgJlj1tL7pNP+ySoKIk+ISZIPuLfBqHuKnDWAou6GV3viJ0jn2qdGRIjUba++Jfg==; 20:ET4Hf/z0tA3yycZAjJWYFS5jwU8USQdEG81mhlW1QwaL/9FrQ2h740YObROuFKpL7en0+P4QuDfRJ+jfvXSUf6c8UmZgBis8x0IFnGSn+Sov6omNpx0Xa1XvjD/rlYaBWR0S5/p80bwWkTKR/fj6yEI8QC5knNFV0KBQfg99o+CoDQuiiUVh5ADRDqUVQN+S23y45jexEHV3D+2fGN+/2E+pxIGqCvtHIa4KAJ/5Q7fBoCUD9K5/oEwkyL7QcCdjkoOPYEOSE25Q7LWtGO+f9kEX4hIWEJUpN+62mTblmICzhT1/xD1ZJ9vpGbv/VK7ugUD6cvQVr7q7iJSchBMYPJAURAMKjdvH0sj/z5UoaMSoQIDJ9JqKw1FAhTfC5D5GQJ17F3kbKnQvExT3nmgJVE38EagvIju17HXp9Xgio09OkTwGGyQKgYYMH0/+FJNWL0zjAxkhT3LBlQki0WdKh2fGN8OD2sC+oWFdRVeMXxTmT6q2DXIbe6DBUd1yDa3pi3cVGW7wUPx7y12kOwpjBW+A4dRDg0k7DAlqoXOsKOdN2thgGWc6mJQgMAFodFgo3TDbu33wpo3ucNj4Kd/sYKHwAU7tVnVeTOmRe/Bh3HU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123560025)(20161123558021)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:SN1PR07MB2255; BCL:0; PCL:0; RULEID:; SRVR:SN1PR07MB2255; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2255; 4:+/kr9SShMK/2UAiz+ydEF5n202O+Db2eWJOooivKnO3ira3GgkECfcm4MkE7N1gdvj1t2+GvWznAhn7dNAaf5O8IVvCfgcRiIIJ7OG/MEn3Gb4JR2MzAkp/5Ja28ELhqTjIxF6Op7DumV+LspK5hSVEPmxcB+VJF1v9YxDX6/TTEUIAsupwLnnrQUpoh3b+TcRMZb0y6Jh6qWsqvZJImfHk8bblO07kyAwTLymKWbxCqkId7dxc+PGa+EslOuypytZHQIJyILjEBOQtheOKfVEpfyNG/qobwM03vbmfDAHp5nTlO5WSL+rPMUwmQW9hgdr85FV80waq+3h5JhTIkYgnaO6FEyEmutrQb49wJQ9HVUX5v82Byq4EB/UracAkWzn0QLSERGcfahRpUuMHNUokz23pQ351p49+/38XXvJVMmWKuMTfrFIqg8o3zNB4L7Mm/2gqlBWROZ2JORpIN/FkCp1YXLYGDZdNUp5HY3c/l0lsWOPrM2aW83UwjgsLU7fcD4qbTLK7DEY7l6b0u/f+FKrDoP7JCY2j0TqSc66b2o7k2ggt325RU/6Y7wczCHCbon5FIwySUQ7T2op5IjacvlA2bHQD5ilp8PBNwLrs= X-Forefront-PRVS: 0182DBBB05 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(189002)(199003)(48376002)(6496003)(50466002)(38730400001)(39060400001)(6486002)(81166006)(81156014)(8676002)(5001770100001)(97736004)(92566002)(2950100002)(36756003)(7736002)(76176999)(305945005)(101416001)(189998001)(68736007)(6116002)(3846002)(2906002)(2201001)(7416002)(50226002)(76506005)(47776003)(4326007)(50986999)(42186005)(5003940100001)(25786008)(33646002)(54906002)(105586002)(106356001)(66066001)(5660300001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB2255; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR07MB2255; 23:EOwKtIZJntfrN1P4OFQ0MENxjYMxmTjf/26QFcjmX?= =?us-ascii?Q?gffjsoazN/wj+hs34RtA/rBK/flOwbCV36JOlJx6Xg2zals/Q/2Mwd/eXazQ?= =?us-ascii?Q?+VfANTcoSwAlqYuf5CPHi/CnZYgJNW36XsCfFhkJBxOZvz0yiHWMgU1uiUy3?= =?us-ascii?Q?w8YSElNoIHiB6x9CpNM6xQFuD0D/P2HrQrPlWnWw2BhhhxADRHCmr9ZSpp3i?= =?us-ascii?Q?KGzEXCrt/u4bQDye9eNvceb/s+ourUoDai084i1lhdM4AUvhX/BhEUHcMK8e?= =?us-ascii?Q?mDqyBtKA02aRQ3XqSTEafaguwFOZxzcJ7EZ2KpJc4CrHLqBBRnROjdi9MTwP?= =?us-ascii?Q?PHoFGjp9ySQgQeKr/QMGDk7jKA9l4sE0R6cQ7sG4JPeAVhz3Fv9AlNVEb7Qn?= =?us-ascii?Q?LYEN1R0IipxGf+YZGMPi7pUS+txmJHCaA17oWcETOMyh8EhW7uvPeCTJNF3d?= =?us-ascii?Q?lgO1W1S6u5ZXqTNTWfyDclb2IXk45QRx5Kox5Tpab+OpomxfpgLmUiV8PZH7?= =?us-ascii?Q?KT1eGSC1NvJzwaZgc5ZkXgCiuegLirgjaj8Md/HWmtsRzieEwojcyyG9vQBA?= =?us-ascii?Q?gZhhau5A5FwCBmiDO1/tCMk2lbNOl7DAkJo1wWPMPzApkwkZUaaPvnQTfu2Z?= =?us-ascii?Q?oZQsTdSFvg164+4suMKSjSYARed/ap79cjq4nYNz88raELRxGC9aMcbba5/r?= =?us-ascii?Q?9Qlv/l8vs6KmwA/1X2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G9/xUXg2AnKEqpzxpGibeu9s+n03HJp59kQCc3hZsFbmYVY4SWEn7cVE66LQFY4fvnirB/Gt4ThqV2lTAvqnubrkLm5+8JThlLsDqDwcITWQMg==; 24:Qr4wwsYGO6JCp5KPB+e70GN90jaRu/6awlTefMnZUHAHpetg/9Jyizxk/UI+SDh2fEWsOgg3UFkXSc+Cuq+cEL4AiTMXMUbGWb5rRYHVX8s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2255; 7:RXNl5l/i88NPD5ixoe/6Rqq4/kKDZhyu4BHzAsQabPwGLnrq6sdk8vLzOfnXAMAgmooALsgJFF9X1YvAGZf79hZMOAEcIsoORlkua6ImLKkWTkc7n4Yw3FtCcIsyXDfPdfQDwgAckhjP72HcQlEFsbby6BAil1IbDudq6No8Vf3qlLtxRsquNpXp5ojdEEp5Yo/GkttbiBmt4CR+rkaGz7KumR+9HYTC1nmHXJaKkyO02dGuehb6IDed+G8CZFzlF5yFBYIpi0Et/e2xr19m9bXXbp+1pWxLZzRKoM+yByGeaW66UdriaT1VjIPlFkZrG3yUDqXXOJO65neHJ1EoGYJWeoQwlNaMwVZ+zS7Q+AejyMuLGEAt7TF3N5jwx0J6KLGp/xmvBWWNCh1I+WM8juBUxhz4YchXXVPnfnfDssVhjO689HG2FN9lCAWN/wFUk8AkPVQzhPe3DCUnnua0vA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2017 11:30:30.8775 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2255 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170109_033057_347581_DCD7B289 X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Pinski , Heiko Carstens , Chris Metcalf , Yury Norov , philipp.tomsich@theobroma-systems.com, Joseph Myers , zhouchengming1@huawei.com, Steve Ellcey , Prasun.Kapoor@caviumnetworks.com, Andreas Schwab , agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski , manuel.montezelo@gmail.com, Chris Metcalf , Andrew Pinski , linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch@mentor.com, Ramana Radhakrishnan , schwidefsky@de.ibm.com, davem@davemloft.net, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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