Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757943AbcC2Tbn (ORCPT ); Tue, 29 Mar 2016 15:31:43 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:65054 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753847AbcC2Tbm (ORCPT ); Tue, 29 Mar 2016 15:31:42 -0400 From: Arnd Bergmann To: Joseph Myers Cc: "Zhangjian (Bamvor)" , Yury Norov , linux-arm-kernel@lists.infradead.org, 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, 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 21:30:29 +0200 Message-ID: <3467083.D7LuvS9l35@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1452792198-10718-1-git-send-email-ynorov@caviumnetworks.com> <3298847.t7vI4YM3gJ@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:wm2uIOd3Uj8+ORv0Iye3JaLIJpx8NL1Xg1yFcmzRc/f9qjbrvF/ 9HUbmyHHWmshFYjA2ZcUqRcbDQmyL6JVTBoKSmjui7ARjSqIOgLSdm4Z83k+rMDbViUdUHO HvhbWbU5wYob0kEQbbPCwSQOwTqlHNOGg9LpdYsyf1MJdC64PRU/DYlZ7tbw7ucCT+KwKJr FXHuokUtzSDFmQ3fGF6UQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:7/MYlGnO8I4=:wSQ+VGOslVSXqlqOZKA69v K6DWlBJcyTHED2N87L8tf08z/bvIEL5zp2Aprgg+BKcuoRzj20NLp5/MYvLgciIu8zQ6LzDnN 8E+fggrLO1381reP3TbW9d9xGsY7LfApD4Sqww4O3coe/YBVyELABQ62HhI8GX2FD3iQJksGg 5JfAOgmsMtjKaKfCM0uKi86qtEuMabYFGmY5grAbBnGW8TzSuRfa5nQ/kENYYsHy1/ZAYb9Yt ecVrgMycawIOimhAhZAV58qCxr6dU2dEsvNEpGL6QKLAMPtqMIA3aUJC7qPQYpxSy6OoHfgFg A314NYqcQlQJyN0sKNcd4hDEoszBLISBIt8XN1W6qN59o2adJhZwg11Qrs/DZTzdp1BRvRK4q oIUeR04J9LThC45n24QWtX1jgXJ/JoC8OiOVeNm9hsUGChx8WrccwT1SzsGh/OKCdeqXnIaBL KeuvGjPQJopEv2IDD1SvLCc6xRxyVOWtj0l6wWYASih1quCHRLf9fBR0p548F5sbCOc5pkAJP kH6ggHzY3alb4m14HlLTTesey7VihauRVNsuKjLfrzOMPd0ogxRjfyS/Iko5EPkOUVFGoz+op 9PJCvF3DgC8ld+PV7jPGrBi0GLLj7VVhbLpuMpr6Ibox/CmE5nnNr2AksnDdjnHqtaQ1798Zj MVP9SgYkeG1bZyP9c8vOK7NJpS2nihgB/E+eywkxVunrab005GVt4QjU8hKnnML6pK/Ofk6ul dPsEytxzbw3hm5I/ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1384 Lines: 31 On Tuesday 29 March 2016 15:54:52 Joseph Myers wrote: > On Tue, 29 Mar 2016, Arnd Bergmann wrote: > > > In glibc, I think we need to define fewer entry points, not more. > > Instead of having both lseek and lseek64, only one of them should > > be provided, and that should always take a 64-bit offset, calling > > into the kernel with the _llseek syscall entry. > > lseek64 is part of the public API, on all platforms. It should be aliased > to lseek where possible. Right, makes sense. > Strictly, it would be possible to provide it in the API without it being > part of the ABI, by arranging the headers so that calls to lseek64 result > in objects with a reference to lseek (because it uses the off64_t typedef, > it's not valid to declare it yourself rather than including a header that > declares it). I don't think it would be a good idea for a new > sub-architecture port to try introducing such a difference from all other > ports, however. How do we do it then? Should we just define __USE_FILE_OFFSET64 unconditionally for all new 32-bit architectures and leave the code dealing with 32-bit off_t/ino_t in place but unreachable, to minimize the differences? Or should all the obsolete types be defined the same way as their replacements so we have 64-bit __OFF_T_TYPE/__INO_T_TYPE and use the same binary implementation regardless of FILE_OFFSET_BITS? Arnd