Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752015AbbLUWd0 (ORCPT ); Mon, 21 Dec 2015 17:33:26 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:55907 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876AbbLUWdZ (ORCPT ); Mon, 21 Dec 2015 17:33:25 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 12/20] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Date: Mon, 21 Dec 2015 23:31:57 +0100 User-Agent: KMail/1.12.2 (Linux/3.19.0-27-generic; KDE/4.3.2; x86_64; ; ) Cc: Yury Norov , catalin.marinas@arm.com, linux-kernel@vger.kernel.org, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, broonie@kernel.org, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , jan.dakinevich@gmail.com, Andrew Pinski , ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com References: <1450215766-14765-1-git-send-email-ynorov@caviumnetworks.com> <1450215766-14765-13-git-send-email-ynorov@caviumnetworks.com> In-Reply-To: <1450215766-14765-13-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201512212331.58152.arnd@arndb.de> X-Provags-ID: V03:K0:h67CpcPgcRPX49QX7OFnMzbdi7Xm7OBW6qzbFCv/Fc2bAw8ZRiz JnvLhR/hPudxn72S2jk+a+hbnXc06VUDpbyvnxuuo8Cdc5ydv3rkJSlYg3cHVcOsE/E0LKV vtZpkcfvVZ9ozs9ipXB2Fh08Y7DDBHWxLC4FWndGasc/5sO+kOH13l9rMFjyJpTGEyt42Db b1XDzryD0zw3JDEKNbETw== X-UI-Out-Filterresults: notjunk:1;V01:K0:qVtfrOE6hno=:xNi0ILtEiA+6Yl7m+eWiRJ 4DkkjA6Jtl96eSFEjttFCeIJKdE31F84yYZxqXYhA4uMdvbxn5VN24JKGJ9ODgQrQpc7V4nbf QVYrjLFXw5GvaSySpOKP88Bytc4l0tTM7iFxr62jfbNmFeWfkyGHfqZIH5CXZdLNl1/XEOwl7 cMbPLTRrhUJWMiOHXDwMPZ/TmvuQQvMyE634xbJYoTpx2vlB4ssKqxvk9CaC6jVqejT76Vj2Y uPjZ/w8BG/aHp8g07Vb/KxL0quW9i2Zj/CgFB9RL/KFlBFSTNcrsxvw2ZrLONyEpibbpqiyvM 5ZQigXWREE0w7/AFkJOQo0S5Hgg5lMvsXTTVMS8jhBGh0jgwhriHExmmgt4llT+xkQ/eWl3r/ x16SqTasDR8ACdQV1Q4NkCiranFh3++aONgm+gA1uJd/eezCr1Q10dzAFl4NGbS7n+YHvZNXM rkv6b6qwwCIDu6gpJrqcaac45EV4bKg+uKslvblyUD0Es9TMSc1onTHTS5DFHR1YL2GVbYh6G vbgEV1pv3yXk9lPwAqKdLiqdZxeAOosLf+FU63BH43MV0GqavLXLtJUjT1lWzLYh26d+MZbHz 1SK8ltn+5hXrrajCeMOnpxJup+j6wwVj6AJCTDERj/m1dTHvDPZQWIBBCfnVvnbSIm5vXrfsW oR4Iyp8jC1b70SGJcBmEM4IX5lL/r1Yf3Qp65/XceosMKwpOuJLmcCqgTYoA80eXnZgzTxlQW CKhDF4sQIEsU/D5Y Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1178 Lines: 26 On Tuesday 15 December 2015, Yury Norov wrote: > + > +#define compat_sys_open_by_handle_at sys_open_by_handle_at > +#define compat_sys_openat sys_openat > + One more thing I just remembered: I think we want this behavior for all new 32-bit architectures, it was a bug to call compat_sys_openat for the generic syscall table, as we don't support 32-bit off_t. Could you split this out into a separate patch that does these changes: - change the default asm-generic/unistd.h to use sys_openat/sys_open_by_handle_at - change tile to override those two to keep the current (suboptimal) behavior - change the force_o_largefile() definition so it defaults to true for all future architectures. The easiest way is probably to add a Kconfig symbol for this that gets selected by all 32-bit architectures, so we can use #define force_o_largefile() ((BITS_PER_LONG != 32) || !IS_ENABLED(CONFIG_ARCH_32BIT_OFF_T)) Arnd -- 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/