From patchwork Tue May 24 00:04:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9132527 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 A2FA9607D6 for ; Tue, 24 May 2016 00:07:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 629462824F for ; Tue, 24 May 2016 00:07:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 573192825E; Tue, 24 May 2016 00:07:47 +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=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 AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F33CD2824F for ; Tue, 24 May 2016 00:07:46 +0000 (UTC) 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 1b4zrc-0005yt-SU; Tue, 24 May 2016 00:06:24 +0000 Received: from mail-bn1on0070.outbound.protection.outlook.com ([157.56.110.70] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4zr3-0005RI-3e for linux-arm-kernel@lists.infradead.org; Tue, 24 May 2016 00:05:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=J8qWkQNe4pdQ9nygPZrNsJoKmhm6CqNacaxPopzcVro=; b=nmxr73X2lOTslfdd3jOKf/3FjvQhUSVXJ8MVT3KELIlXFAJExS8zHut42y6XyMtsYHORJypyag5BfJyUne24THFLcsm+JzoDZG8B56Y+ph7m29TgcNdJvbn5E/wonrSD9kvTUfnTsfVuAPuCT6U5LbX2unH2ZIargYKjxR6v4N0= Authentication-Results: arndb.de; dkim=none (message not signed) header.d=none;arndb.de; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (50.233.148.158) by DM3PR07MB2235.namprd07.prod.outlook.com (10.164.33.145) with Microsoft SMTP Server (TLS) id 15.1.501.7; Tue, 24 May 2016 00:05:26 +0000 From: Yury Norov To: , , , , , , , Subject: [PATCH 06/23] compat ABI: use non-compat openat and open_by_handle_at variants Date: Tue, 24 May 2016 03:04:35 +0300 Message-ID: <1464048292-30136-7-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1464048292-30136-1-git-send-email-ynorov@caviumnetworks.com> References: <1464048292-30136-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [50.233.148.158] X-ClientProxiedBy: SN1PR11CA0030.namprd11.prod.outlook.com (10.164.10.40) To DM3PR07MB2235.namprd07.prod.outlook.com (10.164.33.145) X-MS-Office365-Filtering-Correlation-Id: 8f48eac0-be38-469b-4efe-08d383671c58 X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2235; 2:k4GeAeTWR17qvfsM2zuSrWmQ/clYD3ko3sAgEUdBinI4cC6cO9xFs1Wz30j0IH6KeA6FABxrqkwJN3pA6YEBoDKNfzpg0zCURBGsVNx8Zo5kSmyPxPIiDQRegrRu9TsHyLiQI+05swmX52Ic8sG0DaRnIWIIh4l66jSTx+V1D1dxoYHuSl9DHrq2SCA0PD9c; 3:Ztceu7OptkkUQ2tFZ5UFwGF+eOahqgxjoD1q/FhrRinAWjMRFqP4bDq7I1tCRAg8fNt4bdopT8XJn63Q6pGJZ266aX93NJ0lgWCKdCIilIlApnVnTf1vmnIW2L1nqt6T X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM3PR07MB2235; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2235; 25:Rw4ZzPiJfWPAZH39zxKmzdHwvxCeBRXRC4VT3Lu1oQEWcSLLKeDeuy9bQQkN7VMq4MHMjBE6lUefGGA+RpAQNe3IWWJGiXZke/2eA3DYqDBPefRN0J8hsARvYo6Q+AyrPErhSSPmodpKlGRau22tv9AY5jVYASA+aHhldH/17XfZwu5nZf8hN3TYzKhFV3iqQU63yxBMYhJVjombLRTdkcYc8m7lylTZKbBwlmcMqkBTTX+cXHNgQCIWDHgKzndNmJi/70efx52NmyJDBB/BUi+K7nX0csiAjxRNfhBAK5CtauE5x2DUEgmASasGrkQ+fjGQAALLF1mEAopw1QOIrJlZsN25sEspxEFtLjCVh05W++R9ifZix4hE7q++ELxSTpyDkf7JkSKgbx+1tCD81P5ZemAsjR097zRx5x8USMpGr3pfkJqvIa9mC0cppjZDMdOZNaNberdoIZwNQ10+pk4eXgzYrsmnWzS0NXIKlYO5AthfwVJVXi0Z7eT5IYIlHzJJY2K3KP1ZShz2I44QQEfTZoHEhZwSjsiJa8buRFmaaWRjRCxD9Ggg30Mvy8DG5uRTISZ9rs0UkcM6ogdQkJ4ShLOh8tPPTTNolT0Y36a0yIW8ozzFHuPciEUIbCa+/pHsolaehZrQmxRdrPb/jS1BymQQZH7f6Zk5USpbdkQch5ibDMpPEHiqHs9v1jn98UdJeuWSc1du/2fEnfl8lVwjfNlb3nuOJoiOGTmZlUOIf92q78sdFeNpoEosScLgutu3pDRIh1D6WPtmhHbnow== X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2235; 20:XFUG0UMpnzIM8m6Zrs1I+4X8S6aI6HW7hW4Sr9ZL3y+DfDSiSOsDMxAA4CH18wyikxhCr2x6/Hiis3KuwLT3LaEWl0EocyxQMuZOj2Yvyt+CzrCdpoZd14HQffeByhpH7sub/y6p804icyHNJfNkXp5HQ92604x8p2TPmbJNxtLiY5x75UDlZJGT6KFBHTDqcI6VpzPBpRmZofT/+WZa9fwg6H/smkXb/2UkgTXndxOPSDfBxw4JYWqqPMnYY4szVDXmUSB/DJi8UxLRiICvqhHLjp36EQpODfD1iGb6NKCW5kpjLKOEYVhsM0TuZAS+DUI5zgDNsX/PjDum1HQgrm+MWOCwkiiRRnsWT/XPs5CG7+KgukoaqQ8QMp8JovuIsEihPU6ipIhqfv4xvwCU1xK63kmn8TxQj56jxLyLrSpIKY38CRzLJRVK8gzHsakDTufHsK4d3NvkEx0nnTbO0pNTlSU2fCLliPf0anNccIpPUcQC10Bzx1fHRmBrgLJ1przwg1AR30wrc+sbj148RQhFN4UWR+IDVt8SmL7oA3fOYcxs8EH07D3z580WI/SG1ytDlAjCMKBJpvvxm4EoNB6rFhLI+l+lL4itHCic/cA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:DM3PR07MB2235; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2235; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2235; 4:LxDxGAxL/IhfMAVXIXOcke1CyyqtQ302HnYh5HejC0mozxN4IINixOqIuXpy64wGoaF1xXkZsxDdc1eZwrBbCUglN0ispFuH3X3zo7eYXr7wLHsZR+Y+v4dtr1oZqQJR9x5+VsLXlu2CJqjN13OeqlQPU9RNCkmFuMp8JeQGwVDikJ9phQgw/R/4tp479UEwVa/1pajrpLQuG7TG4iNL1ZjPMK4odv27O1RW0lrscOGaGSKFWeVmuVkwQM8g0eXHdmompuF+zEFo5pwbpf2MDaLxIttvQaALCXkCHwkswhfBOdsbiBh9X5w2PkawJ63cFbMfiJmC3UPWgC2Vx8GTNHj+gAGCUFX6rS5Z0fU8wRXcRXKxIZ1keXHc84fcowIF X-Forefront-PRVS: 09525C61DB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(2906002)(5008740100001)(5001770100001)(92566002)(19580405001)(586003)(50226002)(77096005)(6116002)(19580395003)(229853001)(189998001)(50466002)(48376002)(36756003)(2201001)(66066001)(8676002)(33646002)(47776003)(81166006)(50986999)(5003940100001)(42186005)(2950100001)(76176999)(76506005)(4326007)(5004730100002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2235; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2235; 23:c6kAMKS3C6u150Se5Qzz1VykDO3u9FWAiKt+huxO0Y6YcBvYSwAxztVF8WsgT2VnGnBa8NM57PiZGKbxkOPTskwBzaiubesrAHEl+EKdyhbYOHP2IOTbKOw/dwsVbBLM6he2klDh1/pxDrs33KYlVdNGlFBhsVaZKkEuMW5cQDlsLDpIe+GjCLFLQo8OJnKK9BphUubXk87DF/Ufw0NwEP5ifZIfg4DnxouJ3SKT6CfWGRStwjEVKonnPLkiTvajwj3O9DZb9IXDKfW7AABc9GL9NT1L12nyYOs2eEX1MgbS9BqS12/Pr/a9vxknX9bVAx7HDaXO57MWvdr6EyZaq1ndQIPQp9pHhCYjaBS0hFxDNMcVgaodcUP6kZHdfaOWMlh0bEZu5keW4j0q8ibjMLhe7tJdG1iOE4ILOaMCJ+M7PMGwBuAGNw9rGoB7Urmf2uHMuqTWW2rSYTpqcH2uz0vXo6cPxa1trf4+cxt8zrLDJ5PrXUXpWCy8Q9R3W+15p76NezdSXNofd8QYlPeizu566HXcqENArbv4S1Wx7E4na68g8mBioqi6Y+Waq1Z5gjFu3kWf0SJJ5GJeVWHEoh9WtBcnAyeajkPxHTwzEbZzvandOxl43+avGvQf1PPxsBUlcSHLSL8DVblTJ+EQIi1LfeTbEthcBcLGjbyiNAqesadgF2Y6IWzZw6ts7WVA3t/QYJWaBHIEvOthH67TdWbpWbFocZu+Pztg9HM/vPizpCSOseYuaAcMSTvYAvUXLv1dBImPA4IgJo4aOygGtgmhOS/vIfQULatdbvG7Sx9G8/hFYbLwQydn8Rus2dewV4yAgoYRp3MBufD1Hki/ZHcczO35gmi4CPz0xt14vZbKHP62z/vEQZe1AiitKrGUjqfbUessCfIgyEf408hsrQ== X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2235; 5:em6MHscVlPIZw4wQJKupJJJ95uMf1fm92QjSgUcl64W4OBNzpdV2WdKytaj5QoCFN1/qSD/zBsg8c/Qm30CBwa4KJCMORw4Puz7FDdbLcpKuKO9z6z4I/pe1R3152Wrs78XO0D6RQbkXZBXtDKRR7w==; 24:6VpVOo8PJ6zYsiVbog8RXvGkvhPeFZJpA5rmpmQ7YchDiDybg4MLQG3UySFG9pbQ4aGB4v4NzWdgn7SF+JAitQ9yjCRko0HhHF/dtASdvrY=; 7:ldxNjvQUw+t7E8KMOidzbyMrNXFvSnmjJGM97VfkNccZe51M9wCCrm0tTTkZvCc6d8xpkmZfCCb/vEOZt8rm3PNK7YyRZUMmXAyCc+cYpHtL7MAdzcbdgbMyQGwzAsMUw+6JZGJnmDrCt0ZKJAOVfmagmg7qiSC1DbHhBGrm5hkiJUPFpouvqQ/xW7c3DJg3 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2016 00:05:26.7760 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2235 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160523_170549_481009_373F1EEE X-CRM114-Status: UNSURE ( 5.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kilobyte@angband.pl, pinskia@gmail.com, szabolcs.nagy@arm.com, Nathan_Lynch@mentor.com, heiko.carstens@de.ibm.com, agraf@suse.de, geert@linux-m68k.org, Prasun.Kapoor@caviumnetworks.com, klimov.linux@gmail.com, broonie@kernel.org, ynorov@caviumnetworks.com, schwidefsky@de.ibm.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, 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 +++ 1 file changed, 3 insertions(+) diff --git a/arch/tile/kernel/compat.c b/arch/tile/kernel/compat.c index 4912084..489ae19 100644 --- a/arch/tile/kernel/compat.c +++ b/arch/tile/kernel/compat.c @@ -94,6 +94,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