From patchwork Tue Apr 5 22:08:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 8755891 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 54E139F3D1 for ; Tue, 5 Apr 2016 22:13:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F3B8202A1 for ; Tue, 5 Apr 2016 22:13:28 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 9495B20263 for ; Tue, 5 Apr 2016 22:13:27 +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 1anZBx-0006zL-6C; Tue, 05 Apr 2016 22:11:21 +0000 Received: from mail-bl2on0072.outbound.protection.outlook.com ([65.55.169.72] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1anZBS-0006PB-0Z for linux-arm-kernel@lists.infradead.org; Tue, 05 Apr 2016 22:10:53 +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=21joYkJNhysNYsH9RVxci6cWpkrAVkGjSCrvAy5nVK2d9vfuzqoxi90CxQJBbec2rzGlYkPBNxcp38zh6CNi0wsMo/YqIxVXpuOMv2S4vYnvmMwPImOJr/xrO6M/fKEZxLnk8MDrGa6TvpJa79r3e/HFY9W6tk4LfID7YAA5HR4= 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 (95.143.213.121) by BLUPR07MB612.namprd07.prod.outlook.com (10.141.207.27) with Microsoft SMTP Server (TLS) id 15.1.443.12; Tue, 5 Apr 2016 22:10:26 +0000 From: Yury Norov To: , , , Subject: [PATCH 06/25] compat ABI: use non-compat openat and open_by_handle_at variants Date: Wed, 6 Apr 2016 01:08:28 +0300 Message-ID: <1459894127-17698-7-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM2PR03CA0042.eurprd03.prod.outlook.com (25.160.207.52) To BLUPR07MB612.namprd07.prod.outlook.com (10.141.207.27) X-MS-Office365-Filtering-Correlation-Id: e4ffe1fc-6b7e-407d-fd89-08d35d9f17e8 X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB612; 2:vzqvEL8F6U9AK029HVuysV49wzSXB5B2k/GFpFQ/62a+80qymYsZdcDMGTozB2RKkKxL4nYrmBi+wuhsyfpJyDAzqgA6KbvR74ej5sNINcVUW1P61IvxIz/t7LrdZY+H/+kG949WQnadU+N0rViztK9LHomk5HqQaMMqN6s6iB56NkCDwB1NZYKa4zh+/YJ7; 3://BtOQ21I7Hwn1TpJV6RMt5vcHXon8MOP0f/VUfzZED5AgpktMwFXeEtVXRjwnRAFaRvVx+PuWMUv3zr9QXgEbdPrOFVFMUuH3TUNDdQcPw44aEIaBLR3FxBQGAQgMhF X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR07MB612; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB612;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sMGE0WSx7tpE4EORfaWPeGH8JyqCHUqVTnG1JZ7crkws8F+8XLPenEvEIiq69yHiLlvpGusHPKBsD/qVsiigmrOaco2htDagVGr28DEfMtsrU9133B2PPcCDOvfdHeXiIVS0aBm3FVrqVmt0lA19N5VJPdRaIfKM+rE7MX60aMPaADpJnNBRIquOHs+qHPkA5zrZZ2mvdL+X3d/TtZCO0A2DeBZNP7ho6jgPKIb44= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BLUPR07MB612; BCL:0; PCL:0; RULEID:; SRVR:BLUPR07MB612; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB612; 4:WCZgBqR3XOn3xivyIXSgYiXPKWrDQEORZDsGGCTpuHVL0hFBorGfG4jCyd539fPLhbRL4JLEPuAGMolLTeAnTRikUJg8K9jJBgiWoTmqyxWmTcb1llV52OG0A4HcLzuiGp9DpNjhmCPTLUNvDeGudqy7xzZ7LlfSCCIYnZkA7p9CYJXzA1iXcM1ioOaFpIjXC+6bQAohmMWEgY7OTL3J1Lvm+jOyWJP3KhIgZ4QTowUYoWqYJFJh1z70CVC1ot55fQI1icXw4yu0uM6STH0mI6+Oa58e/cjETcdE0W8wn6uXELUoWIF9DFoBCtruLkQFiX4KEwh0TUPBggYfdJDmdPz/DuP8xcgm4aTYbEjcDIGnmBt40N7zweUHPR4YzOVj X-Forefront-PRVS: 0903DD1D85 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(33646002)(5008740100001)(3846002)(229853001)(92566002)(19580395003)(77096005)(5004730100002)(1096002)(36756003)(2201001)(50466002)(48376002)(50226001)(47776003)(42186005)(66066001)(4326007)(76506005)(76176999)(6116002)(50986999)(5003940100001)(586003)(81166005)(19580405001)(2950100001)(5001770100001)(189998001)(2906002)(2101003); DIR:OUT; SF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-Exchange-Diagnostics: 1; BLUPR07MB612; 5:w6zdtGlxC8wyBXgWJh2Ja5PUhEqn6nJkhPLmGEokfQwiki/uXOOlfE5Am7v9jZ62CmWj9FENtMaPtuESkI2QqNj0WxIkA+Ljlf90n2SAP6ZncochoszqqnJ917SdOSBVM4AhOHS8pM9alCZogm+Jpg==; 24:2cfkJn9H3Iqu615SEIWAkZVOd1SinINlU4wx0yc1X+AwwLQ6eodpg6riBFNXa3FCVgDkUz6kSEbKT9Siyd/NI1HO7UPEXYG7FfGds8X+SHQ= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2016 22:10:26.8575 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR07MB612 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160405_151050_724215_114FFC39 X-CRM114-Status: UNSURE ( 6.38 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) 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: linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, broonie@kernel.org, linux-doc@vger.kernel.org, heiko.carstens@de.ibm.com, agraf@suse.de, klimov.linux@gmail.com, ynorov@caviumnetworks.com, bamvor.zhangjian@huawei.com, schwidefsky@de.ibm.com, Nathan_Lynch@mentor.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-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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