Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbbL2J3g (ORCPT ); Tue, 29 Dec 2015 04:29:36 -0500 Received: from mail-bn1bn0100.outbound.protection.outlook.com ([157.56.110.100]:6400 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750906AbbL2J3c (ORCPT ); Tue, 29 Dec 2015 04:29:32 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , CC: , , Yury Norov Subject: [PATCH 1/2] compat ABI: use non-compat openat and open_by_handle_at variants Date: Tue, 29 Dec 2015 12:26:34 +0300 Message-ID: <1451381195-9315-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1451381195-9315-1-git-send-email-ynorov@caviumnetworks.com> References: <1451381195-9315-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: VI1PR05CA0041.eurprd05.prod.outlook.com (25.162.33.179) To BY2PR07MB613.namprd07.prod.outlook.com (10.141.222.144) X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;2:5VwzZwL7H4J7Vm7JBizwvxcwlqi39BAgiubznWusR5C7Sr93Ypi/QM1m0sdC9Cjp0/0OKyXT1Ywbfmdviw8jjFi+2lxS4VUB/b+WR3NhPlV4I/EYZgkOGkAa8i5+Rlq4ngxswixtcSvMQj/AsSGpOw==;3:KGuKiA4x8XE0dWKhsF5VQSgok89DlHGAFHHZ9l/5NJWHb8lCv52vW7bzdIIyybwCXz/NrHGhxDaz7cRTiU+bstD1ZiN5H4RIz/05Uc2AQnSlysbsyiJ07Uc3fAZQM6JX;25:z+OCC9vQ3qtnRwJiT82ms0rEnzhUeyFaAI/4BO0lQW9JcfJdP+Fm084nBp5xzwFI6u/zlAxHnQ78XinxjK/vCBkGBaY+koQN6/1hBAlKbMiNdaxqTwMs57CSfUL4vw5Dzhy3AqB72kZ57MasebTG3a/SnT0Zfaw1cNudzfXR3EUQD25XKwn0dLBKqYaWrENmIfKPEXsrOP6zYMDMwlHViaTI9BUQlQNQiZu1O6SAKDH6coF/7xdnE/Gw8FWJJl7M0dR7rtz+9+3GflMNiMKIzw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB613; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;20:DKrNTQ+vV8bKN0xRMKY7MVKkqgnXa15sGmZ8XM7/g/Wcy2oDAectdsWo/gnMLJOvpYRKnlFjNy8sTmXryy42+iYoNCMat7fuT2iMG9khAva377VN2W1uQ/X3JL3nXMU0kBC4cVzwt3xVo2hbKTuwMGIFXSEgaIlP143xoZBI5OwHv4Z92rDYLSPdOnDs38XP7U3blS4qySKXUgtu84P7N6ormq6jTLnSUosEqw41w0j8WbvgD15HM3i8xdqF/PompWa4A+vndAYBWR2MtBS8sffwnbjqzYio28TxNJJOBbEMTyaLd3iQVwDeWGni+RK3l9uWfYMhyB6EGjV3nWzuu/HAZMGKNX6f3RyR/1Hh4SaUyKC+gIrEOD9rHndif06Zf1CuHlWtwRQLE38Tcl8jqokOFJZmNYqcWaszE+VMpp3OyfuMKYkFV6fUFyPr/mgli72kqppby9QwPVo3Qq5aX7NMNdxWu6YYpsL4lK0eQi3NiscyKT6DTb+4JV5BJW5auyet1+u4RaOttIAt0Npl9zYEBKVXXEN94EWqtm43HtyWElKSwlydpj5kOtdq7Evm0Xhw2FOyoT6ACm8gXjgfVe48lxHiRaVdH9TIt5rQUdo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(121898900299872)(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046);SRVR:BY2PR07MB613;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB613; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;4:gHf2BNKqGTSL1O6Nf9rJXvrBLg7FAFJxN8JYQboPGYXBBG+pTZaZ4w9I18XveAw+8eIHDUr6QdyWxEhycqQuetmXL7KWREMOb4UTa7ccFrJD3krKkCNTO9N0YtW4Un3pSRJu42QaD8EIKqJRiANtDFsJ5Q336hYbx0LN4FXkXx1dQkOQ3Pm4cbsnbez6dtcN+xoKINlIPaKxxPO8irFZlS54bOhGesapfsh7TA4nS2w6DzMRysHeKJb1On6CQZ5HsIp5n4x1Rd3LXOn30fa08m4951Dc1kPuiOI587mPrzEIr4OEXq1s7fyyJBmGESuxwtGVlmv9jdOCm2CJuqdfVQdMfsnyuqca3r6MXZC6ASunbM/TlWbNdlrqn+IiKxrnVCIVXUraw/iITiG7te7vZTHdxmHmf2iqCU3NCAhoR2KvR0YxX9cmu8CXlAIdGYQVMEwcmiE4yO2T1lAP9A5NGQ== X-Forefront-PRVS: 0805EC9467 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(199003)(189002)(229853001)(101416001)(77096005)(106356001)(2950100001)(50986999)(76506005)(105586002)(2201001)(19580405001)(189998001)(5001960100002)(76176999)(33646002)(50226001)(19580395003)(107886002)(50466002)(5008740100001)(42186005)(122386002)(1096002)(5003940100001)(6116002)(586003)(4001430100002)(87976001)(3846002)(48376002)(40100003)(81156007)(5001770100001)(97736004)(47776003)(92566002)(36756003)(5004730100002)(66066001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR07MB613;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB613;23:p47ntDECtQo2oDHJ5YgY9c9sL1yFiiVTTzmtwOSf+w?= =?us-ascii?Q?hq0pX8isvyBC5z+B0ISf8cCgs8+np1xuwwDGpo/t/w8uOVKEeAV45pH51foi?= =?us-ascii?Q?NZg3a2XVS8sv/u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c?= =?us-ascii?Q?E9Ip1oRl6QBrWbk7vw+o4pgplfeszxpOyW7wwgPO7KkrYj1NLVae+aNW3UzO?= =?us-ascii?Q?BVWaRksZQUiC98m9AVeT6u90R7CZ8rPGZqy/gK9zP9fDadtexgfPOZwFTzg3?= =?us-ascii?Q?gEacQ0R4Y=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;5:lO4a553ot4YZTpp904kyYzYf9SdLhnSaGUxAeiYKMJdZsVYU9fi3cJjEMCaw0CdY1tihFNSPrxS5On8cLWv6a09VNEqFx1+qXCQqtR1uERmY+z7q5/mvaYiFRwYBIdoCeszJFyU1yjZ2UrXxF+XlYA==;24:yYft7+ANmiSOUJZkwodUvLVQCZXtuNXucFXh/F9M88+lf7+9KGSucpg+ooRDfcVJGTolmZGnFGcH61FkB8ThqfCgM6w2k7bdhYhcrxZjFOs= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2015 09:29:29.4906 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB613 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2385 Lines: 58 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 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 diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 1324b02..07761e5 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -175,7 +175,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 @@ -673,8 +673,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 -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/