From patchwork Fri Jun 17 23:54:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 102139 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp518008qgy; Fri, 17 Jun 2016 16:55:02 -0700 (PDT) X-Received: by 10.66.75.72 with SMTP id a8mr5070975paw.99.1466207702852; Fri, 17 Jun 2016 16:55:02 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7si18568965pac.77.2016.06.17.16.55.02; Fri, 17 Jun 2016 16:55:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753448AbcFQXyr (ORCPT + 30 others); Fri, 17 Jun 2016 19:54:47 -0400 Received: from mail-bn1on0086.outbound.protection.outlook.com ([157.56.110.86]:63328 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751095AbcFQXyo (ORCPT ); Fri, 17 Jun 2016 19:54:44 -0400 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=E1jXh1mxd+wj0P9RfH+ipSCZ/tEK8JeV5AV3ObG+jEM=; b=SKXZqr4zixK0EJZHse6kIYro+aSi1yalTVFnZGCjHex1jN4lhjty/i073Et6Ve63SU2/oPfH1BpJg6BmY7Q8NSKrTgHL9HUOw9wUJ4DNNwkGqc+MkpjmFey1f6yVBjhFbzjiL4gZoI4vXt1ndmeUEDABKxtrWfn1gdLlTJZVNmA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (50.233.148.158) by CY1PR07MB2245.namprd07.prod.outlook.com (10.164.112.147) with Microsoft SMTP Server (TLS) id 15.1.517.8; Fri, 17 Jun 2016 23:54:40 +0000 From: Yury Norov To: , , , , , , CC: , , , , , , , , , , , , , , , , , , , Subject: [PATCH 01/19] compat ABI: use non-compat openat and open_by_handle_at variants Date: Sat, 18 Jun 2016 02:54:10 +0300 Message-ID: <1466207668-10549-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466207668-10549-1-git-send-email-ynorov@caviumnetworks.com> References: <1466207668-10549-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [50.233.148.158] X-ClientProxiedBy: SN1PR10CA0002.namprd10.prod.outlook.com (10.162.255.140) To CY1PR07MB2245.namprd07.prod.outlook.com (10.164.112.147) X-MS-Office365-Filtering-Correlation-Id: b06a4012-5fcf-4171-940a-08d3970abf72 X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 2:jNhpqTfHc19OuLgjqM3QUvNjiSkozwENDv2g6BOzZB8o6Dc122lWHw1W0voX5lWsSWHODiD5uEdiUwalfTRapizbbaoQQKWzwh3vJDBJ5WrJEodAf+ofj2KmlA0kwBkYSGR/LGY9hpvmepKZzcfSBwvb2Gcc8jF5pmMkuGLfMylRmN9Sk3eiOFetzxnx35Ht; 3:UgV0mkqRKqbXZT/wAIdR39ymxp7QayhXhWptXZeJcYqCplz7OkM1U6mK00Ij4zLOaEdZDhcTznrkUOQK4XcmZ1Vc9SoQXRvIRmX5OcVBlOB6icLgy8br7xppMDqq0ScA; 25:+ZITnnywDLKKhl6tTsmomPwXXC4He0rwz/ER96D1ItvtKjjPg/kp5g582SMG0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/cXJ9yYVR73s= 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:CY1PR07MB2245; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2245; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 4:+Tx5vcdjcfljOk2kP9KwR5b2wR6CdnlV2QM1vnWQHC/VQwAXfuPgQ2iPytdHeXRglXtYwmAhEDyfyC3V2DPDwhEHAR2XB97xlVNGG+xkhXLt3Me+giRmQjmIWB+XHPUvAe9NNgu2jZ1fV38S0b4XY41f1C/bwfwJisd70blMilelqUHe+DxbSoAsL5rAr3fcdk2hlLh7SLJHcIj7wigH/O4oJ4FLMEhds4zQkK76ACRbNzuhMT9gy85cl/JEhWVoRx4O769XODQWgG832pZoi4bnGcN5FEVVe5EpC2XN/L/7cWEndex7W0kxdyS7MwOF22m66LyliO9DjU2u1oWcYlInxa/GkP1vRr4UQobdqJjlhjKxnf3y6owI3iicVu+A X-Forefront-PRVS: 09760A0505 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(199003)(189002)(97736004)(105586002)(5001770100001)(106356001)(47776003)(36756003)(33646002)(19580405001)(19580395003)(2906002)(7846002)(42186005)(189998001)(81156014)(8676002)(81166006)(101416001)(77096005)(4326007)(2950100001)(6116002)(3846002)(586003)(68736007)(2201001)(76176999)(50986999)(66066001)(5004730100002)(229853001)(92566002)(48376002)(76506005)(5003940100001)(50226002)(50466002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2245; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 23:XtdJR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O9lfi5rlYq7nk2nDgy5wRmkdv5DoUJsJDR8Kv8HnH7sjBA== X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 6:kLDpPi0T+GVzCFBlTBPW/cYLkxdrpoBGZ2GzEaxtuymi/Jb9TqeLcLJlYeRBvLpSFYICEJF35ajfuzveoWuJZNX8su1FibiDvvRXc0RPJsA8F/nhgKF6pk4gVb2n6jsAtpCV76/gyRzoAHdzkNB0QAydBYN8d13vwsXhBdsqLHRAE1x9wX1KjWHYU8pycJjbd1bxw4ybmYZY+19mWQzhNgznLgOGC2oV7IQONG8grrqiG8JcJIc3ayMBRXhaAdbb8bWB0Cgzbvadym1dN3YsFhIF6vHqxXL04Iur2qHf0Yg=; 5:NbfRLefYTMT4N6bPdsQcA3f5Rax9yPq/Jz0cghbffx9Rq16g9nsq/xMYkrHuwYHJhhzoqxnrF5h4gqh59g1FaL1KF9N9E5tdB1EW30KxFn4iZadTf+LxN1cy5xMk1WvQQ4AzckKrNZqtANVpD13+OA==; 24:ch+c22gpdxYrOpiLN6lRXFJcfxqh93CN7yzahQiB9HQkicWXe/Y5+YRHkQu687INy2TFfuoFbXHI7zH3jqcYOod0IO/Fe40rmRbVs2ftp7s=; 7:zc97RAfD4tl4edlFL0yIyH9wrdUqNFfVR0PeS6WtgAcaOQOLnKexKM1OArsebU8x5q7zKY2RXAOKnjOQmdf4+eBzoIuD14wPsdoyxE5RWChb5AGX+BLJfQCoeU5nUzmnufqk2tJX1XFXnpBH39iH+p0qBEWJXFjxecFFtAvLF3VbyJ3mSdjQZnWUN7wJOT3r8hyPIJChuKG/s8ZOnoBz9A== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2016 23:54:40.4834 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2245 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.7.4 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