Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760727AbcDEWKo (ORCPT ); Tue, 5 Apr 2016 18:10:44 -0400 Received: from mail-bl2on0056.outbound.protection.outlook.com ([65.55.169.56]:59472 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760713AbcDEWKl (ORCPT ); Tue, 5 Apr 2016 18:10:41 -0400 Authentication-Results: arndb.de; dkim=none (message not signed) header.d=none;arndb.de; dmarc=none action=none header.from=caviumnetworks.com; From: Yury Norov To: , , , CC: , , , , , , , , , , , , , , , 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 Content-Type: text/plain 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;25:z0NbSmmLimot36P8Q6mnxuyKeJwsPZrrFOhCf3zT3cHLdQPELiZisc2YcBgD+kko0YsAIQKjhiqN4mMCvB4khniwExL5HAInrwlPyfiaYWU4JRE6MFPi79oUzN7nopBRyyAwzoc/AvppYLcy9JVVesQ0JFwHfSgRdySHceg1QZEk0VwxieT7gVqliUL7O9wnH4NOnJX2ovy752VpY9Vr3Nkyp/wZpxDw55PuOc3UIVheLRDxPD2MytUBxN2STX7Tf+dKo9NM94cNpwhuwsuEWtESONoghdfYFmc1Yv7ByxVr1A2TrX56i54o1cKD+qaoXP01eIioNPR5rEiDXVQeHInHCMaFocwGjSplQDAf5UJqIKTR3fdAkw5ZM2W/L8p40XU/P9xcNb8XErt2RfzxZk8sVC+DufWMOncRyrd+REHWS6CtMVO8Vu0zVI+3Bv5mEPGV7LqIfGQY+IiOpzSj0lzbSgO0+TI5PmynpHH6NQy3hxgTaMOz0G9g80PT10v7124nFvK7ctXhex3ksdEe4G177DJcSWubhnTxHqErl7d47uaJb1AnHaOrBDk0IZtUsDueaxgDjPurDDU8lx3WzL0BqTbDn1fHQeq38jMzWNA9IhxSOP+YqifO6Ktv82xj0CA1TgC0mIMZAoxWkni4Zw== X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB612;20:LSf9/vSoDpeTJmcQgI1qUtsTHyviG+NjLYnPY9cwcYaF7dZ59vPCvzvyFuG6154jS1pTfpfA+zUNfXJrLYfRCb00ebWL/6jTunbtiOeIzsivcKqeThyc5+7Q8wATJ2/gSRRGsoXNMk0F5MGhNykb73MB+ufrbvqjlcwZ8s5SYaZv6gZQjff56EecBowbjBq5V8v/A0F5RS3vdbgPJagGfwgDfzM0dThm7qgAUqv1Zd/Xdc/C2wtm9usdnImb2cgAb7qpOFol3l8Hf1EvWhuBNNzJdlw/7yooSqrglLbxvwZhFqFMhTgXNySJvPTAOuX2xBVv7epK/ycjiNJbkm3Q0kyAwsMioJGAyjJBooqiFQ6F/JbDmcFa1lrD8XY/qlQowSsMGE0WSx7tpE4EORfaWPeGH8JyqCHUqVTnG1JZ7crkws8F+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;SFP:1101;SCL:1;SRVR:BLUPR07MB612;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB612;23:fQqJYOaglHZ622Z3SXAt35xu541Jd0Kfvo3zUaw5xBHVkrlFe/HduK/r/9J7RRP7KPQNthUbeAebSyDQfJqrgrH+1EIrnKz67hCpoM+xWbW9xrJ9vR6PYwIpRNKUNwDIHliik78vF5D2qBDh0+spXc8bQdNZS94SkEVfg2YulUwaAmwSAW+UHMZhCVOqqeHjlfFSPjZd9Q5rw51i6vg771fSMrmVRwzrNqfi7ytwfRA+qCgtL9d5tLpL6FvQN87ZpoQ4SH0iHtV6unNXSv8g38WhMoLHIEmX8g4XY7N2QmFz3vSZ3r1xmRRu+KR4+O/cIGi2bt+vDhhziHm4rMv+WemwqJ0UH/WMWfrFwJWhL5nBhGAGoy2D2JaU8ySiZ9Lx0w1u/5qZPmNnzM+nZmWRDJ3nlGPkSldAUMseePn3AJvwzcSNbvG3v6N+Cs/HSV59j2v+TAd4kpmXDhdqFhT8Wxa4DgEUiQ30Ic0X8zSSSMBUE1ZiJ+emo0Bh77YyIbBRsLII9e9XXu9JF2KWj4SrBYE4EK6kVK4GAjiVL3T6K51DNEM/hc8TtHQZ4D1kZzISh6kAVohurtfmOIxBoj7sVdHV7lgH33OPnOqWGWYGShtA0ubhuZRG67TiwRFYOpJjHmLm8rNuQOMPw1ePR49wFWOah4JEhJxHKW3kvXwQVFVxV/sbpXoeJLpTzgDBCbHAgCr8ScsGMTe34Eh1iOx5HepeYZvh/E8AMo3g8+pxJAHNuImYJS7yePq56w4kdVqDUqi4Ednzlap7LWUQIMO5rtr8mHtnsIOdyagrgEo3Ua6EllqzDlaDepZU3U2RrhoUlBTKMdtV5kVEE0StRSLXutAMOTlCf8ED5yTIvRpP7rwFHpwHKiA6woX8B/OYJikQecnZKaswF280KmZ876CMIqeQSSNOl+8hxFhvEdGk89DoAbYIGlTR/cjDMbX9RwK9 X-Microsoft-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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 28 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 -- 2.5.0