Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753803AbbLZQHr (ORCPT ); Sat, 26 Dec 2015 11:07:47 -0500 Received: from mail-bl2on0060.outbound.protection.outlook.com ([65.55.169.60]:52375 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751955AbbLZQHp (ORCPT ); Sat, 26 Dec 2015 11:07:45 -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: Sat, 26 Dec 2015 19:06:39 +0300 Message-ID: <1451146000-5646-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1451146000-5646-1-git-send-email-ynorov@caviumnetworks.com> References: <1451146000-5646-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM3PR01CA047.eurprd01.prod.exchangelabs.com (10.141.191.37) To CO2PR07MB618.namprd07.prod.outlook.com (10.141.228.149) X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB618;2:D9om+W6zMasiKSCHYIhcbdV8iHJOD+eifDnVl1YF3mRFtCJ7Cu+ImIH5cGR3WvbANTDYTPSDOStI7p6xcf/Y/jleKVXJUJUzo9NtNCMrjeHr4s2i45nPjhd1CYd7McHgYI/+s2xRvr03asS8dn1wQA==;3:gNVKd6F2CmbvSgd9WplNspzLmPTFdhY0fSUHT5FrBnB1pkR1gvmuDMNUCxSU8XShi0bxd2544D1ifI4mS/0so4UGT/z0E6hEGN75spd4WN3RT7ju3/uh8E29hrg8bcmY;25:avGG1zGA5ae+KnV/k99Ci8u0514VNgD68VNzZV1KRIYXHpEDUeWmXYTEL4ky8N1FlAz9B7eJyXj2UDtddFXb0bp9KYn+5GCZRW//ZwKk4lrRqE4u2bOwVAS+GUWNaAzxMJosBpDH19teHPVx/MWHMWp3vfdJxH93gA/paugtKZ0WL9jwEmLeXAtiLL2z3PqSWMSk6CCWXf/hy7/YXQKz9N7mvlwvsXao0tSJLTT+5rrptjKl7Z/ALbfplrQ1xVRP2gjqBH0IiH5WGvfYEdx7Pw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB618; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB618;20:6WSitzH5ul34x2IEPajNuZctZizBgtwDawREgfRwp4csl6cfXX+t8Td0eCDoBbvsuKH6i+XQUzcY0tmDDa4hnBprYlXXv16EvR9Tw9RTYvoR97KeyO4bDPlMLyDkon+6d3F/cj8vF2eQ/oZIgEX33o+kKInLDM0WU/Rg59MIkmt5JrSkZjcGHuIA5TQ1sceZzm75hT3PxDMCeGKVhl37Pjz0EcIFpy+zmgpzJTVT/feXDE7YDgO65lJ0Z95YHo59qqBr0fsJM4f1/rNRdjuqbdX/KpC6fiVGbhBimlFxEYR4qpTIrbd3pY6kJGstqBMr+EKAqiSHiAMTyQYLR1v54zZ359sf9DiW3Bt7qASha5/bqA/63UX2b5iyOeD1/rTBr9FZnQldCHFPyx618qvjKaej/fAoXKlorZnU6M1wRAXn03dgsNmlrBVNSVXq0vAF5tk223szDXUvbstsO/czVUiOpU1icCUrHvsWmgaVWUqcWZe+c7r9nSUP+gPKpN40IUdH9U+Xg4ouB2s3C6qQuPIaIv7lcz5XvH/kugO27plvk8/mhhu8VCj++2/LqnC/L0EGlEqflxqTHm/A0YjV6l1VVEEZK1mNJEOmOh+/pdE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001);SRVR:CO2PR07MB618;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB618; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB618;4:vCk54RI1DQh6GH/MWB0PUxGO65TRa/cASnaqmKAy71mTfkE5wBDS7TkECCxf0FGt9lz8g2YgaJ8I5r58sy4sDOlEmbyktgFub+FtCQypOMCcI0Z29qCcHEeMofleLy1gOraOL9URR9Ca+VWYv4mas8NbPxtQYDOTIjo6r0vrej+y0+6CmAzJbA2WffGQkIPMCLzaXjzR8g9cGXKEtdDmsXiC+ZqCCAmh4cv4amCiUzRZKRpCBw/9KSYwHLj+8ehbbgA9VHNHivbmz0SjDubpgKaKnMm8tbl+QiBnVp+k0Fd6+iSjrhJxpN+Etbov42RTvDcLtPICzL96ZTZYNBgZNT2itPte1Bjuvm/Uj/Eahpq6Qa3u2QfQU6ngKKYLXz6Q4uV2+OJcxCNgxmzgzEsEtsxe7NtQfMtXYquqkg9dIIVplabGTKxoELd8xNMZt8JA X-Forefront-PRVS: 0802ADD973 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(199003)(189002)(47776003)(97736004)(76176999)(107886002)(5001770100001)(5001960100002)(77096005)(33646002)(5004730100002)(105586002)(189998001)(586003)(50226001)(81156007)(106356001)(92566002)(66066001)(5003940100001)(6116002)(3846002)(5008740100001)(4001430100002)(40100003)(1096002)(76506005)(42186005)(36756003)(19580405001)(19580395003)(101416001)(50466002)(229853001)(2950100001)(50986999)(87976001)(122386002)(48376002);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB618;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB618;23:BodUFQ0Y93sTveNI8yC5PmAAFizX3BZLOXwfkzZHAt?= =?us-ascii?Q?8OTttcyWFyqwjrHxSRfGJVYjpOBjkumwZ28UIucp+/H4UURb7CljWmSK2T4C?= =?us-ascii?Q?jtENMM0lI3WU9RgxAzIy856Io/BwbV7WaBtnBgSQFLyasXJXGIKc3Hnng6+4?= =?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zIrmxDdXscNJ1bBKxd6LAT5/xBAjTz0iQNTlsGEU?= =?us-ascii?Q?OLzkuPT23+gAaQQz6UjQZWQm1HKeMH5gymhi0ISUpFsc71iw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB618;5:6PLHePbyfZSkp/L8Uu01JX/XV86ea3xFoglD+n9ujHMXmaRA/sA3nc9k+9ojkkxz4G1GevHG9RMKcA/+Sd4LNNfbz6TFfCRFTqPmvOtjGNvTO0cdSf4fbWG6EnH18BCHnkORzEhYXArP+HAYik3JgA==;24:RAa6/ikRXzsa2ShRh1bMcGdGe8kNMuWooLzYNIt/4JEfZq1cjntfOW9u6UZx2WMIlXofep3XmSFnYnRIJdZeCyr7jGEMmyVO1LEJ55QYUJ0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2015 16:07:41.4712 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB618 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2288 Lines: 56 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 --- 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/