Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933242AbcKHLLJ (ORCPT ); Tue, 8 Nov 2016 06:11:09 -0500 Received: from mail-cys01nam02on0041.outbound.protection.outlook.com ([104.47.37.41]:38792 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933072AbcKHLKl (ORCPT ); Tue, 8 Nov 2016 06:10:41 -0500 X-Greylist: delayed 1117 seconds by postgrey-1.27 at vger.kernel.org; Tue, 08 Nov 2016 06:10:40 EST 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, 8 Nov 2016 16:02:59 +0530 Message-ID: <1478601180-20932-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478601180-20932-1-git-send-email-ynorov@caviumnetworks.com> References: <1478601180-20932-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [223.196.240.56] X-ClientProxiedBy: AM4PR0701CA0012.eurprd07.prod.outlook.com (10.165.102.22) To SN1PR07MB2256.namprd07.prod.outlook.com (10.164.47.150) X-MS-Office365-Filtering-Correlation-Id: cf992a1f-0e27-479a-cc05-08d407c2f975 X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2256;2:0VL8AQVs4vIq22WScEEbRagZ2PbdwIZexIYQIf/4WDI11lGbUDfdwbhBPALxJVU01iIpJOkuGJlF6PtVhY8CwoKHRAjJCC5SD+eAd0ZNgGZIv7NGBaEIGCuKUwixmfUaHMZ6DB1/KqXpSpG99fi4gLQopOYnj47UBTx6RpV9ZJSCcqEgmWZx5yfguyEZwyttuEm+GI5Mvl0OfBp4OchyZw==;3:I8x50IL5j0Xfp4TqzkoD3Nmta5+i+bxASKt4BIQ3hlUz1rw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/aptxw/QghnETNqvk12pS7setkWU+/Pwndvt1bhCG97/i7oN3hCiXCDqDikZ7Bri9N7tAA1aRVXQaVUhKfD2mIiUjlTwY8xAzqi+TE7U9v+MsP1og1/VGQJz0VAdO5JMEqdG7p04WWrdn51xccEK0enl2yMG0zTmUTYacPZ1SRymyyB/8OBKKVBhJ1yUQ/eGeBCuKVmp5Yp/nMPLmT1bNL/2Cwse8TRRlCs877zBXY5FgUmE7nJlMScHvW4oO5daMJGbp+GsHoc7sv94IqrNOjkooIZ1aQl9Ox079/jwuU/drilOVJZU2MiwKcSdjzGI7Q8m+SCamPHafhDx1vj31xqYcSMYy4wI+R9B5hinGGTr4EPEePmVdTfkijOplhdrlLZne/5u5KI+ikFDVRcVl/mxv4dMRr6vWq2fL/01nTR3+XaKADPpcdn3kPTIa+94clAvwH4sLkpc0zeJkgJTtRVcPjMqzk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:SN1PR07MB2256;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB2256; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2256;4:mVliOD4X6E1EksKBD2j5rVXQACMH8nwtnFEe5uskqVoC3tikVhvxryD7GWshezYrrJNVOU+eWC8tRKVd8kdNP2vzmRynZLYWEO7LHK9rmGILf2S52esA/7lAevOy+0AHHtrXjQg9SNiD4KoseYFow8WtTN0fIYKiNlCqYpbUpq8HURL/doVC0rhDWM5zEuerrcuVWerI6BqsYW3K6tw8FTlMd3YvzEk8Rl3VYmbIak2adhspq24sKunCH+7aqFlil+Xz8FkTZFWiOAd5z/bBAlRA8JuosVuqWnPkipW3K2T77g+kciy0YwAgcfEl45ZBZ//S45KtAb3eAgzvuT8iSFnNNsRnCZSw+Dj5/2XAAcmAKEKO4xSzUZPdqHMyqyssdr0nNbYUkcmQjQUGmOx4pw== X-Forefront-PRVS: 01208B1E18 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(189002)(105586002)(8676002)(5001770100001)(76506005)(4001430100002)(6666003)(42186005)(36756003)(2950100002)(81156014)(81166006)(33646002)(6116002)(97736004)(586003)(3846002)(48376002)(2906002)(76176999)(50226002)(66066001)(50466002)(229853001)(50986999)(106356001)(77096005)(101416001)(2201001)(68736007)(47776003)(107886002)(4326007)(5660300001)(7736002)(92566002)(189998001)(7846002)(5003940100001)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2256;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2256;23:8C2DLKRIrGGK2iyeTzvRYEkbDuajJsKF/hFHnTud+?= =?us-ascii?Q?X1LVrk7GGDc7tPnyV1tfFb1CgiGC0BRrRWzyPqTDIskDhFIHr4TnLyjVXULM?= =?us-ascii?Q?gIt+q//1oiurDq2Pg5XZ1/XrSHa0b8Ixf6GHMUxd6F7zy0060uG1BetQJVc5?= =?us-ascii?Q?Ul5HDHqUyxuc16LgrSGrS0vZESjBQyva6Rbi772bcO/8JTQT2MO29w2yLZ1d?= =?us-ascii?Q?vKhmawmRjhhM/T6F2xOwOyNaXpDU1zByenoRGCTJIIMhE4KtbuM+GwmX6rnP?= =?us-ascii?Q?KzYPsiqUnVhbmNBkqRDR+koU693eIGBKytUmAP081jLFvNu+53w6A6CpPiNt?= =?us-ascii?Q?t7f/ocLdUFNdHzpLzG+NlttqxOQoOZlIH/oJWd1BhyVZ7BfeawZiYiiOyV1w?= =?us-ascii?Q?/TtLIeY8VwozbDtGpsNKg5EyTED4sWWqpXxYz5FcY93STlmjeYrQtNejfokZ?= =?us-ascii?Q?yl9WXeZYv0PRRiB8V0jP0iEG6w3odsZaZI1o59/UoSFPXgKvzoG3sffmi9lt?= =?us-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JjZgrx8XbISZ+gAzRHefiLQpHbYCYl7BRz69P6WaHmjr6w/A1q/p83i+V;5:adi7BsPNysxDxGLW0bqm2X6qOPFuzHYT2Hk+5YmegMW1HOW48qMydHOJwyw7E7A7z5d5jkqw6MtBlWjaD1/dZ6ZzJcSK2NH/pyoJZc0peQt3KY340dQS9vPgTG1HaUvln80SlAmkV5d1V8UDfBh0Bg==;24:PVWv38tFkshhIL6+O1UQOOTLrtG/6sq/RcV5rlrYgVzpEj9q4p/4RoESVkKFWvhTX/LcH8oAV98CrpFesATNlbC39Mg4A7DFl7CRoQrc0V8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2256;7:MMKe2l9sBn2sBakUyg/h0G+tnoX3k0zNvmaC5Pa6CbfpfsRly0Ysk4/AMWCT8Bz9Jj9oyVAaNuyaB2Ftym1MkQOnos74mKVRo3JxvkY8QV1wnFVafCyDuoI1HXXZ2Mpeh23eq34SL6qcHqtg+4lt/5WKletF5aqv30k0lFeoN655DO1hlhSg6XKdZI4XMKdwGzZunGF3T8GWpFTV+hdG7dbx5WPDSy5HO3F2lFXmvx5f4v7IF3UfOgc9DQGi4w0H1fNnD6xida0uj89UeLyDlQL8WFMbixMHxxXRT5tEkY7thuWnrbx2dm0Lp6fb5ym/RonOvbAEN/rg6LgHmSjnHEBJ3lU+xX1xv2mHHq4EDHs= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2016 10:35:24.8120 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2256 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2141 Lines: 52 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 bdaf71d..3b7853c 100644 --- a/arch/tile/kernel/compat.c +++ b/arch/tile/kernel/compat.c @@ -103,6 +103,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 9b1462e..a6062be 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -178,7 +178,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 @@ -676,8 +676,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.7.4