From patchwork Mon Feb 18 21:07:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 158641 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2934953jaa; Mon, 18 Feb 2019 13:08:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IbRPMA7HIBaiTbkr7fVpcYxCU6o4CLuTsKHzrf0iGhIMDQ1HGtYBUYP9r1VzMIMsREVdGvP X-Received: by 2002:a62:7602:: with SMTP id r2mr25953701pfc.191.1550524090546; Mon, 18 Feb 2019 13:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550524090; cv=none; d=google.com; s=arc-20160816; b=IlyukWI3zoinyns8WxtH/qarnInuLdAYTXMA9Ro7NKlL131FtaUYsFCGf1sZ3DZInD 9Hjf4E5DyPw9MliYs2kLZui1lun22pr8PbfymctcHO8nanAP7DtZGSeQaDFWVuCQ83/m IbcryBU5KeBGnIr3RtB6lTFUijpvT+ECd7RkXkXGAclclYR/+fgRGaQSq3xxluTqAJWu mvyxOeLRL+l1ykLUzSKq+t+100YvVcFGrg7+rjiw1RKC50iJm+bDaJiD/GPbr1aShYhE WIgxxdzcMyYjwfSC9arcZMaNQrB+M29u7DAFQbQeEA/gwuoqMwLXd2Qy0bPeKUspNjQy sWGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ur1hH93LKE8hTb0XLQgcw5avPlmH9ahM6ZLD44deJUE=; b=jOZ4d0hmsJSSr5ftT2oVAQgJpRCOF0tJIKfK5V7L/WjzP0i4MF9ouJlSDxizu0Ao8G kQuaV3/nnGghYmvVhhr4o+lIEre8oDnHpXZOWNyNqlL9WS8EIF2QvsA9SBkslRerzpEu qVSES7lCt6MMk3x+I9GjytQWEUvb9hK/FElw5h/iW1pwZSV/nXLXN0rLmiXSNizYgHmi V0GhH06+E1bRrx2Xd5Wz5tTmDGiIPVRk160ofHd+KnnFfUWeVgCa9Un4MVrJOxELHC3w w8o+3FGgtNftDX3kemwQXW+qJuulGG6wsKfFZXVFZhO/Bc82qA8D2B6QmonX8uWUOlFB yHkg== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c139si12394744pfb.281.2019.02.18.13.08.10; Mon, 18 Feb 2019 13:08:10 -0800 (PST) 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; 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 S1729352AbfBRVII (ORCPT + 32 others); Mon, 18 Feb 2019 16:08:08 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:57907 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728676AbfBRVID (ORCPT ); Mon, 18 Feb 2019 16:08:03 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1M894P-1gzOdr1DG7-005Hqb; Mon, 18 Feb 2019 22:07:24 +0100 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: Thomas Gleixner , linux-arch@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, yury.norov@gmail.com, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, Stafford Horne , Vineet Gupta , Palmer Dabbelt , Guo Ren , Greentime Hu , arnd@arndb.de, linux-riscv@lists.infradead.org, Guan Xuetao , Yury Norov , Yury Norov Subject: [PATCH 1/8] compat ABI: use non-compat openat and open_by_handle_at variants Date: Mon, 18 Feb 2019 22:07:05 +0100 Message-Id: <20190218210712.3503891-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190218210712.3503891-1-arnd@arndb.de> References: <20190218210712.3503891-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:Orj12xgdgMLKf/0v9QWyyXfYt0be3LlRpxJPHPgrMPDM0BnJ6WV BiLjhwLgc5U1C/Ku6TThTvBytLILEw94wcflD2P4D8aMVj1M6BMTtsRvQzpDcQi5i2KJmXB F+hHXIGVuNx9XyXbHpXSVjE9Lmp6xT8wlf1TVaf6ckTcv5FJ+tMk94wMt83YlYfQSPdcQQA vUP00Bef/iee0lCoDfhSQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:AmDHvMow4jU=:wgjN+bHjmauBTwC5INBuZa kwbgPKcxBciSswCZ8/hJX+dA1uKNGxkSQqFWNgUDq9u0H35s+lBE0HS7/bwFirv911RTPPV64 1QQOCoG/Xv16krmGDJ0c0FzpFwadl4hNLJI+Of0fiQby0i/vJelQdmZf0mt/pgQAazojAZe/e FWGpoxzc87oMSDeCUkmRkMA8mZlSuVFPeffCZ7ItzTPBD1xRE4ZLjuMLdzFP14X2czSBqH/UY Qt98uvuQb7EUmsBv6mfPxSoUAJ+xKyi4AGkXToXFKc9WOxk4oVhtemBgsFNLGANMqI804JiBv 700hovB3xfegQzjPemFFwbqE+VpkKpGnOBo+j5MxJvZa03KP3teLkNLAJJmpJu9X7/P/V5fLC kNo31gUG4OUYLmep7kwSXhwP46H8zabPtxvXjLdzCWuNQIagzzPoMHMK53ARD8D1gfuZ3Lq+E V0DRm9L/csRhGFpfi1EAIYC60T1NxI1BuKAMPqmji5oCBs9q34kiY4mwkWt2J8XVqod77IJ8u Yf2GWsxQRDzHfuxfF4pbfj/LBpeaNJUQD8894H24It3r7y4vmCe5Tq0DkkONzy/RhHtKS3ckF NRb9duTX2JUd+mqkIgwf8c+sC1K4i+njwigthjhjFPzpp1qDiHQ7BKuyPaDeU5NeFTyPLBjSW AQ75D7twBBuOAdhOdZbLdPptocCntHHJS0RbZTTRKKS3NOJpQiiCwk/+18PZkGe7zRx+jzjAs Y3NEYyjIAXAUv4vZQ0frh0vqCvbkPt9qcs+E0Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yury Norov The only difference between native and compat openat and open_by_handle_at is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we are going to drop the support of 32-bit userspace off_t. Signed-off-by: Yury Norov Signed-off-by: Yury Norov Signed-off-by: Arnd Bergmann --- include/uapi/asm-generic/unistd.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.20.0 diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index acf9a07ab2ff..b928eff3bf92 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -179,7 +179,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 @@ -678,8 +678,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_3264(__NR_clock_adjtime, sys_clock_adjtime32, sys_clock_adjtime) #define __NR_syncfs 267