From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64 Date: Tue, 17 May 2016 18:02:36 +0200 Message-ID: References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> <573B0A4D.4090704@arm.com> <4173531.IRSphtVpg9@wuerfel> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: (Joseph Myers's message of "Tue, 17 May 2016 15:45:11 +0000") Sender: linux-doc-owner@vger.kernel.org To: Joseph Myers Cc: Arnd Bergmann , Szabolcs Nagy , Yury Norov , catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, nd@arm.com, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, broonie@kernel.org, linux-doc@vger.kernel.org, heiko.carstens@de.ibm.com, agraf@suse.de, klimov.linux@gmail.com, bamvor.zhangjian@huawei.com, schwidefsky@de.ibm.com, Nathan_Lynch@mentor.com, christoph.muellner@theobroma-systems.com, GNU C Library List-Id: linux-arch.vger.kernel.org Joseph Myers writes: > On Tue, 17 May 2016, Arnd Bergmann wrote: > >> I think it has become easier to override now and we just need to >> update sysdeps/unix/sysv/linux/generic/bits/typesizes.h to set >> >> #define __INO64_T_TYPE __UQUAD_TYPE >> #define __OFF64_T_TYPE __UQUAD_TYPE >> #define __OFF_T_MATCHES_OFF64_T 1 >> #define __INO_T_MATCHES_INO64_T 1 >> >> for new architectures (obviously not the ones that already use the >> 32-bit types). I haven't tries this, so there may be other things >> that are required. > > I think more than that would be needed to get struct stat to match and get > things aliased for that (which is presumably desirable). Looking at sysdeps/unix/sysv/linux/generic/bits/stat.h, there is at least blkcnt_t that differs between stat and stat64. And you probably want to alias statfs and statfs64 as well, ie. fs{blk,fil}cnt_t. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From mboxrd@z Thu Jan 1 00:00:00 1970 From: schwab@suse.de (Andreas Schwab) Date: Tue, 17 May 2016 18:02:36 +0200 Subject: [RFC6 PATCH v6 00/21] ILP32 for ARM64 In-Reply-To: (Joseph Myers's message of "Tue, 17 May 2016 15:45:11 +0000") References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> <573B0A4D.4090704@arm.com> <4173531.IRSphtVpg9@wuerfel> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Joseph Myers writes: > On Tue, 17 May 2016, Arnd Bergmann wrote: > >> I think it has become easier to override now and we just need to >> update sysdeps/unix/sysv/linux/generic/bits/typesizes.h to set >> >> #define __INO64_T_TYPE __UQUAD_TYPE >> #define __OFF64_T_TYPE __UQUAD_TYPE >> #define __OFF_T_MATCHES_OFF64_T 1 >> #define __INO_T_MATCHES_INO64_T 1 >> >> for new architectures (obviously not the ones that already use the >> 32-bit types). I haven't tries this, so there may be other things >> that are required. > > I think more than that would be needed to get struct stat to match and get > things aliased for that (which is presumably desirable). Looking at sysdeps/unix/sysv/linux/generic/bits/stat.h, there is at least blkcnt_t that differs between stat and stat64. And you probably want to alias statfs and statfs64 as well, ie. fs{blk,fil}cnt_t. Andreas. -- Andreas Schwab, SUSE Labs, schwab at suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932574AbcEQQCr (ORCPT ); Tue, 17 May 2016 12:02:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:37049 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932272AbcEQQCp (ORCPT ); Tue, 17 May 2016 12:02:45 -0400 From: Andreas Schwab To: Joseph Myers Cc: Arnd Bergmann , Szabolcs Nagy , Yury Norov , , , , , , , , , , , , , , , , , , GNU C Library Subject: Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64 References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> <573B0A4D.4090704@arm.com> <4173531.IRSphtVpg9@wuerfel> X-Yow: In order to make PLANS for the WEEKEND...so that we can read RESTAURANT REVIEWS and decide to GO to that restaurant & then NEVER GO...so we can meet a FRIEND after work in a BAR and COMPLAIN about Interior Sect'y JAMES WATT until the SUBJECT is changed to NUCLEAR BLACKMAIL...and so our RELATIVES can FORCE us to listen to HOCKEY STATISTICS while we wait for them to LEAVE on the 7:48.... Date: Tue, 17 May 2016 18:02:36 +0200 In-Reply-To: (Joseph Myers's message of "Tue, 17 May 2016 15:45:11 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joseph Myers writes: > On Tue, 17 May 2016, Arnd Bergmann wrote: > >> I think it has become easier to override now and we just need to >> update sysdeps/unix/sysv/linux/generic/bits/typesizes.h to set >> >> #define __INO64_T_TYPE __UQUAD_TYPE >> #define __OFF64_T_TYPE __UQUAD_TYPE >> #define __OFF_T_MATCHES_OFF64_T 1 >> #define __INO_T_MATCHES_INO64_T 1 >> >> for new architectures (obviously not the ones that already use the >> 32-bit types). I haven't tries this, so there may be other things >> that are required. > > I think more than that would be needed to get struct stat to match and get > things aliased for that (which is presumably desirable). Looking at sysdeps/unix/sysv/linux/generic/bits/stat.h, there is at least blkcnt_t that differs between stat and stat64. And you probably want to alias statfs and statfs64 as well, ie. fs{blk,fil}cnt_t. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."