Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032875AbbKEOKM (ORCPT ); Thu, 5 Nov 2015 09:10:12 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:52408 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032637AbbKEOKJ (ORCPT ); Thu, 5 Nov 2015 09:10:09 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Yury Norov , catalin.marinas@arm.com, linux-kernel@vger.kernel.org, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, broonie@kernel.org, jan.dakinevich@gmail.com, ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, andrey.konovalov@linaro.org, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH v6 14/17] aarch64: ilp32: use generic stat64 structure Date: Thu, 05 Nov 2015 15:03:52 +0100 Message-ID: <9280044.CblpxvJy8Z@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1446507046-24604-15-git-send-email-ynorov@caviumnetworks.com> References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> <1446507046-24604-15-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:oxhx8ZzR2xInYx/yXCdchivn8vuESKt72A9YvXchDG9HCCnB5oc CkBFGn3xzs07Lk8+Tu8swlbCMPFWZKgIDZHDDjyroEVSFiJGZyZWTXFrRH6G+qwSp9bSLlI Fd4MuGN5xaZfHvDhcoyNztPc724nHPaZnZgtQWbRJfo4/50ZA6Al2eMbm1mFUHN9kSHIjyT aMnlW7Q1I26ylKmqx2YRA== X-UI-Out-Filterresults: notjunk:1;V01:K0:NX9P2z3ImV8=:6sOezx/PXIPVdRDkmYc7kV fGwaBuOQVKmro/WHsZm/qE9H5U4AsjvqmU7zT5jRFcj2WcHOeqFnqiSbtFsLJGdROGM8Ha7o4 0UvTeeDoYMoYOfpx0jjJkppjANT7jCgq58c/WYY8poKWy0Ga+PwdTMjiCXxq1VMNFGIuxwEpq fP/YF1uuMr9e/8iBp4RshTiRVuj1mBy61ZTH4WUgfdI6r/WewVL6SsrAOanY0O9YrDIOZE/ni xMYZ25vJJFdNq4Gk8H4OAnh8yYuu/TyUsoix4Yksci6GImTNAckBMawQHHnkiBPt27AFZ995j otd3tHWyJNziV5Pc/sQlZRp9hY1/wtz6Unl+b9jMGUYGGbq87BDkpag6V0itGM8pC+UVFtMlI jPvKenlr0YljlptMhTovEOVj0FG7JvDF3W2Nj0Deoxot6vc6qH1WNoqS+TyD7o/oaERrE8Zy7 K2SnSC5RtY7zLMaMZxye5uAbnZeQnj0OuLw10s4QePwf1i2A5Duaz3Ys6I4p082TyOO6yL4dT IOyRA0bYHGw8KUGNCtQcJOTBtGTikXlkHHQsIbWzrdUfMw3wowBImG69+q065F7AKT67Rvze6 pIqVMQQahqc0drBxzraCKe+sAEfORymHr0lZGlFg6feblUDJxTVIThZhoIaOlKd1LqF45CC9u h8ZCpl83ARJv/x3RWJ6r94YB6HRgtsWUMKMm9xo2qtTmmtYrod9MskDb00gz/IHHpTI/rDz3y jIH3lFtjvbodz1CA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1622 Lines: 35 On Tuesday 03 November 2015 02:30:43 Yury Norov wrote: > Generic 32-bit and AARCH32 stat64 structures has same names. > ILP32 needs generic stat64. So we can either make ILP32 mutual > exclusive with AARCH32, or introduce __stat64, and where needed, > cast stat64 to it with #define. > > Second option requires to duplicate cp_new_stat64 code. But we > choose it, because it's more flexible to have independend support > for ABIs. > > Signed-off-by: Yury Norov > Reviewed-by: David Daney I'm sorry I screwed up with the definition for stat64 in asm-generic, by defining it to have too short st_{a,m,c}time members. This means we have to introduce another 'struct stat64' variant already to solve the y2038 problem, and I have patches for it already, to make that implementation use the same structure as the 64-bit 'struct stat' with 64-bit timestamps. There is also an ongoing effort from David Howells to create a new 'struct statx' (or maybe xstat) system call with a completely new layout. I think here it would be better to avoid adding yet another version for ilp32 mode, and we are better off defining 'struct stat64' in the arm64 headers, and share either the normal arm32 syscall entry (with the default asm-generic syscall) or the normal arm64 syscall entry (as we will do for the future replacement). 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/