Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751826AbcC2MnI (ORCPT ); Tue, 29 Mar 2016 08:43:08 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:64688 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbcC2MnG (ORCPT ); Tue, 29 Mar 2016 08:43:06 -0400 From: Arnd Bergmann To: Yury Norov Cc: linux-arm-kernel@lists.infradead.org, "Zhangjian (Bamvor)" , Andreas Schwab , young.liuyang@huawei.com, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, catalin.marinas@arm.com, broonie@kernel.org, "jijun (D)" , heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, agraf@suse.de, klimov.linux@gmail.com, jan.dakinevich@gmail.com, joseph@codesourcery.com, gaoyongliang@huawei.com, schwidefsky@de.ibm.com, Nathan_Lynch@mentor.com, Bamvor Zhang Jian , christoph.muellner@theobroma-systems.com Subject: Re: [RFC5 PATCH v6 00/21] ILP32 for ARM64 Date: Tue, 29 Mar 2016 14:42:08 +0200 Message-ID: <4942019.FGzfTdnOaZ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160329120147.GA3551@yury-N73SV> References: <1452792198-10718-1-git-send-email-ynorov@caviumnetworks.com> <4405408.txAtlZbTDH@wuerfel> <20160329120147.GA3551@yury-N73SV> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:biPzOJmDA2iMX/QGx/ApaSaEPy9Q93e+UrNKlq4i0MPKcxylGqW CNCSXaKsnTDWXO4X6FaXAVmc7gwMzL/eINWkGbI8DI06y83DT5DCqHOvK7UQjhQLAJjj5II vVU64KZLVPvbduRrwpGwmxF7lctNiXGzA6kEebS1T4PKPIjvngHjRQewUM3qYEg9PsmTfNo SpTA7J6TMFdiskIdExRow== X-UI-Out-Filterresults: notjunk:1;V01:K0:sEeFrXqJj3k=:gOaJowavPve7ZnwWz6vRC5 qvnu9Ss76W8no55UZt6t8oMi3wVw4z0KsiuUWAB1RGA4s/zrgYcBrzafAqYV3I2Dg7G2j4gye OSVuZAmeAwPC7M6wWzEVaxjgU0jGzaOZ5qqkNrOJZ2ya09gfU3ADDHWlk8k+ymtOCByXmPzIX 2aMg0S3bNTswH+l0t6SnjI8dGihTTjywp+kFMp4d4pEY/JgS/stUX2yvJZnUwGNvuSkfdVRGZ iFhgQZjAuT3qXWPGCrcjEMsikBlm/FemH/wcBpol9zxKgE7XVu950YoJmnPuf32sWdI7Pl6vq MHvoVLMv4aqJTWChX8Lwg1B/i2cWA/khslrO/+fOisGY8I1Y8yDX0BbkWlWq6lzz9nI9KqGKt P/fb7XElHbrDFDaaVmY4KrN/uojJAD/VU2EY8y9h5ZZiceZaAaGfXiRrFSf+baRzYWPAPzg/m +4rJsQmRPsIAQCvNvukMDDvCmhNZwAiqW/TXcYgPMtHZtJ1dkH841WFZhdcKRymCgn/7ezpSj gouqC+UdN5gpBJLODsm++37s7wb1+mUCh+NXKjMtBgTHDQHi+EBp7AN/uGmXL0G9Pq+2DMZaP enlnzOxCg9fGTtk8PWeUOgssIW2G53B24B/L0C16kDIdmuJG509vj9a7DaB3iZXsk5YCFgjMy /Raq00vCMbetAajAh7xdBAJUYEYsiqajQcuywJ2fPW2+Oq8x+KAy5aabxZr51D1Mgpw1zRL7W QruYxY1HoCD0myOe Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2242 Lines: 55 On Tuesday 29 March 2016 15:01:47 Yury Norov wrote: > On Tue, Mar 29, 2016 at 12:58:25PM +0200, Arnd Bergmann wrote: > > On Saturday 26 March 2016 20:36:43 Zhangjian wrote: > > > > > > I am a little bit confuse about off_t. In "[PATCH 08/33] 32-bit > > > ABI: introduce ARCH_32BIT_OFF_T config option", it mentioned that all > > > the new 32bit architecture should use 64bit off_t. > > > > Ah, so it is part of the series. I had not checked that here. > > > > I'm preparing new submission now. I can join off_t, s390 and ilp32 > patchsets. It seems, they will not be grabbed separately anyway, so > this may decrease confusions like this. > > Arnd? Yes, that sounds good. > > > Should we define off_t in aarch64(for both ilp32 and lp64) in > > > typesize.h as following? > > > > > > diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h b/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h > > > index 7073493..13b77c5 100644 > > > --- a/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h > > > +++ b/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h > > > @@ -33,7 +33,7 @@ > > > #define __INO64_T_TYPE __UQUAD_TYPE > > > #define __MODE_T_TYPE __U32_TYPE > > > #define __NLINK_T_TYPE __U32_TYPE > > > -#define __OFF_T_TYPE __SLONGWORD_TYPE > > > +#define __OFF_T_TYPE __SQUAD_TYPE > > > #define __OFF64_T_TYPE __SQUAD_TYPE > > > #define __PID_T_TYPE __S32_TYPE > > > #define __RLIM_T_TYPE __ULONGWORD_TYPE > > > > > > Then we could remove the __USE_FILE_OFFSET64 in stat.h and fcnt.h in > > > aarch64. And truncate and ftruncate is same as truncate64 and > > > ftruncate64. > > > > I don't know what the glibc developers prefer, but I think the > > result needs to be something like that: either __OFF_T_TYPE is > > defined as you write above as a 64-bit type, or the user-visible > > off_t typedef unconditionally uses __OFF64_T_TYPE rather than > > __OFF_T_TYPE. > > > > I'm not the glibc developer as well, but I think it's OK. Which of the two? I guess with the example that Bamvor gave regarding struct stat, the latter is what we want, forcing the use of __USE_FILE_OFFSET64 rather than changing the definition of __OFF_T_TYPE. Arnd