Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753239AbbL2LCu (ORCPT ); Tue, 29 Dec 2015 06:02:50 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:51959 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753015AbbL2LCq (ORCPT ); Tue, 29 Dec 2015 06:02:46 -0500 From: Arnd Bergmann To: Yury Norov Cc: cmetcalf@ezchip.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, klimov.linux@gmail.com Subject: Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option Date: Tue, 29 Dec 2015 12:02:33 +0100 Message-ID: <2936028.iA62kEhLnJ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1451381195-9315-3-git-send-email-ynorov@caviumnetworks.com> References: <1451381195-9315-1-git-send-email-ynorov@caviumnetworks.com> <1451381195-9315-3-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:vQyr5tO6J6w/eiRVFLxX/et8fQ2qNdp3w19zGPH5zYzzpyBBYC5 Q8IH0kRMh71a2jBrgUK0U8d9Hd00VNVt4kJYb00GCVS02U0ypfoL2X53PH1/UP2gccSGENj 2AekigPieMGbNDqodFYrYZVfgnk5uLSeKkkaSeh8O8IdteQn35xwGjsiKdYjzpNFCXm/Fkz H+ogJXAkPzSabVq6//Z6g== X-UI-Out-Filterresults: notjunk:1;V01:K0:rmUVXmowUPs=:UKTRnOUpec3Fv9LvqacGiD hf6SLKUVR20InwrRWR3Yhw/ckScmOisYtTmkk63qfQwA6Ef1gGiKYZ66BFQebeAmO1wnJu07a F0RIGcpNq9xuv+ELywTKzlnpaImCMVud9PmeFIWS4jQhOgnHxcqy7garfnFrMfN85P5N5PClp QLsa6174eZOqxp0a96zwKY29HzefxEavFa6BpbFdRrC627lhyh+HhAEF/bBkddgOkpLCX6BJ2 l004UfG9L2Z1GeE8FA7XjB6+Ci4L1SyDYNJpYa20JZ21UrZcrx5JOOU9I5RqF3QIveeC7DyU5 3RTxfJx2GNZ1xJpgZdovz1nbxaKs1WNQpGuQII1aZf4XOA6MFlOFdKNRcUjBl7UaNAjlMdEOB bgNW2KCPXN1DNlwxaoor4dutLBlcK8Rw4RhH/xQehPd3QZJlm1lyUNAmiYfiL2VWK5RaiYOUM vGmHFMYV+PLy1HWNudJTz7IGyRt9lPloaRoHU/f/xCj5BGjEIaqP/LMUJ7R70YR84P2m5ctEd eUntg6BBzfcsWVtTT4q3Bdv0+MDrwOZdAqW1Pr2C0JmlN7UalV15cxEGaaCWb6pdSaR55Ak4B MvBntMc55C6b8b2BY6Q3Vgf4ra7tZHb/i5Bdoqpdix2/JcPDkuiHHB6QzrxSvBXqm1uPQqG1c 6anqxncnAMdXeVj0iXAN++HtQMRsgeZ3LzYh6S2F/S0OZpq9Cdz5Ewj/A1hONiNoRuIsfRCuy gJEs5tjs4svi9Z0d Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1298 Lines: 33 On Tuesday 29 December 2015 12:26:35 Yury Norov wrote: > All new 32-bit architectures should have 64-bit off_t type, but existing > architectures has 32-bit ones. > > To handle it, new config option is added to arch/Kconfig that defaults > ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing > 32-bit architectures enable it explicitly here. > > New option affects force_o_largefile() behaviour. Namely, if off_t is > 64-bits long, we have no reason to reject user to open big files. > > Note that even if architectures has only 64-bit off_t in the kernel > (arc, c6x, h8300, hexagon, metag, nios2, openrisc, tile32 and unicore32), > a libc may use 32-bit off_t, and therefore want to limit the file size > to 4GB unless specified differently in the open flags. > > Signed-off-by: Yury Norov > Acked-by: Arnd Bergmann Should we merge the two patches through my asm-generic tree now, or should we keep them in the ilp32 series, any preferences? I think either way works. 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/