Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1134061imm; Fri, 8 Jun 2018 10:32:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKYv0DNOtRU9wc1iXJIfS6iBGhLRt6UvzfN3eZaqqueOcHGXIJAdcu7CqdjEXQOONUkNjbp X-Received: by 2002:a62:5c06:: with SMTP id q6-v6mr6978165pfb.118.1528479176444; Fri, 08 Jun 2018 10:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528479176; cv=none; d=google.com; s=arc-20160816; b=Qks9h+mTatqNJFt9LNLX7rxx7XWfbOa7A2s7ol7wGKF7HiLs3y91x0sZos7iaLaECj d8TmCD1VKcoTU/HDujD8k7QsseTgAGcmJJrdD9YkEg13uqv5FML9vLazYNAQZC9dj2tO pHcBsjn1qLb5EnwjkDe8j2BkSOQ7tKHSpkCs9CafbYgA9KGctQ5pam4ISKn/w8vCE+Am xL34wfYZiJWrWbL/PVOUEJb9SeWKg/ulrtoLlH9pfel4WltIX3+tQJ2iw9SYVcrBndXo yqjUVPzLMqxpW/aJ7FHMh0Vxs/1o982n28ujPNWdawhBIKm4DFHtfwYikfekhbe2bNlO dv6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=JnMH9pYYKQHhUCi1xiQvmODLrsVsljx2/lBpo1F/7sY=; b=Q0HC9kmNiAqD8H6KhsIxRPr/OGnhmoSQRPI1xVXCbHRVCExaD0ANREH9gEarALMzrp d/Q6Ch6ph3TG6hw98C4KtNFYVJ0EedHQkkaDmS9HJ8cGBjkp/14p8n67UWghvw3y5o0k SAQufxYhCS44+CKm2lBZfu/9N9OmbYXMtw9GBgAjDERl6ZpLEeu2lOhJ4Iajlx2UW/Ai M5GrwvCSqqIzSWqoC7icoH5EMXWHXcDejRkMI+B8Lcbm2sIdyGMcL0O4YfjKBLs85GAQ Vfk0G0Y1J9RqMkVTSzXE53j+/2RbXUeLuwnTzklQ5oZZivyw1qWkZqvyL+YVBh8bpRDv Yeaw== 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 p1-v6si53372372pfn.269.2018.06.08.10.32.41; Fri, 08 Jun 2018 10:32:56 -0700 (PDT) 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 S1752706AbeFHRcS (ORCPT + 99 others); Fri, 8 Jun 2018 13:32:18 -0400 Received: from foss.arm.com ([217.140.101.70]:36120 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbeFHRcP (ORCPT ); Fri, 8 Jun 2018 13:32:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5BF6B1529; Fri, 8 Jun 2018 10:32:15 -0700 (PDT) Received: from armageddon.cambridge.arm.com (armageddon.cambridge.arm.com [10.1.206.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1E91A3F557; Fri, 8 Jun 2018 10:32:09 -0700 (PDT) Date: Fri, 8 Jun 2018 18:32:07 +0100 From: Catalin Marinas To: Yury Norov Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Szabolcs Nagy , Heiko Carstens , Philipp Tomsich , Joseph Myers , Steve Ellcey , Prasun Kapoor , Andreas Schwab , Alexander Graf , Bamvor Zhangjian , Geert Uytterhoeven , Dave Martin , Adam Borowski , Manuel Montezelo , James Hogan , Chris Metcalf , Andrew Pinski , Lin Yongting , Alexey Klimov , Mark Brown , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch , James Morse , Ramana Radhakrishnan , Martin Schwidefsky , "David S . Miller" , Christoph Muellner Subject: Re: [PATCH 04/24] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option Message-ID: <20180608173207.nwoi25jee52gpdwy@armageddon.cambridge.arm.com> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> <20180516081910.10067-5-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180516081910.10067-5-ynorov@caviumnetworks.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 11:18:49AM +0300, Yury Norov wrote: > diff --git a/arch/Kconfig b/arch/Kconfig > index 76c0b54443b1..ee079244dc3c 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -264,6 +264,21 @@ config ARCH_THREAD_STACK_ALLOCATOR > config ARCH_WANTS_DYNAMIC_TASK_STRUCT > bool > > +config ARCH_32BIT_OFF_T > + bool > + depends on !64BIT > + help > + All new 32-bit architectures should have 64-bit off_t type on > + userspace side which corresponds to the loff_t kernel type. This > + is the requirement for modern ABIs. Some existing architectures > + already have 32-bit off_t. This option is enabled for all such > + architectures explicitly. Namely: arc, arm, blackfin, cris, frv, > + h8300, hexagon, m32r, m68k, metag, microblaze, mips32, mn10300, > + nios2, openrisc, parisc32, powerpc32, score, sh, sparc, tile32, > + unicore32, x86_32 and xtensa. This is the complete list. Any > + new 32-bit architecture should declare 64-bit off_t type on user > + side and so should not enable this option. Do you know if this is the case for riscv and nds32, merged in the meantime? If not, I suggest you drop this patch altogether and just define force_o_largefile() for arm64/ilp32 as we don't seem to stick to "all new 32-bit architectures should have 64-bit off_t". -- Catalin