Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752948AbbL2LoE (ORCPT ); Tue, 29 Dec 2015 06:44:04 -0500 Received: from mail-bn1bon0089.outbound.protection.outlook.com ([157.56.111.89]:51236 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751538AbbL2LoA (ORCPT ); Tue, 29 Dec 2015 06:44:00 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Date: Tue, 29 Dec 2015 14:43:41 +0300 From: Yury Norov To: Arnd Bergmann CC: , , , Subject: Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option Message-ID: <20151229114341.GA15657@yury-N73SV> References: <1451381195-9315-1-git-send-email-ynorov@caviumnetworks.com> <1451381195-9315-3-git-send-email-ynorov@caviumnetworks.com> <2936028.iA62kEhLnJ@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <2936028.iA62kEhLnJ@wuerfel> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: DB4PR01CA0051.eurprd01.prod.exchangelabs.com (10.242.152.41) To BLUPR07MB610.namprd07.prod.outlook.com (10.141.207.15) X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB610;2:MBU8c4BPHUkgCPMHGPvqWs5hUcaD2QEgL1NXzQW7uOmsMDqCp/qCqWMtpS8spuvXctlkvkJGgFaOXVHMvNlBedrwBQjtfg13r1GFgyQFm9ZT/rTgcg+A7/5e3C7c6DyFhRLSfBKUmwQ2bpXFM1vrlw==;3:wapiki8s5I/8VOscG+cxgbicBU7FT6+yU4I4ITEAaJ4bUhNOrZrne8LXwNZL0vyB4O8UZIatFFdjExM40qNvraRND/K0EMDOGL42fyt7N7zow1yK9umIvW+G3JMyyT4M;25:DynmfF/0zA/Z1sAhG4uWp4ZrET9SYUSPYVlzHYfjjvf7ynYnxVQ+s3puD72hYVny6NVg2T7JKz+bayBDVYzEjmOVvV3BKYDNnDxDHuQtUVEyg6tiFXEsx/OQQhBE/77ul8RXKwV0jP8Vyzk04qhRhL/4sjpcmlvhRR9fmXKEttcv3VSCece1azj5b2E2Wih19/rx0T1ST/XSZA9iE4t7IHPpytBQqp5fQp8w3c3prvYJjYR/YO3HuAsXOmjMH77gtWgdqrCSLapt2bBcfyVKTQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR07MB610; X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB610;20:cBNTd4JjlyhdTEn/GZK0BaaLhqSP3PcOuqeyvGZIOJ7ihGMB3/q1UFb9FUDjclxEIemOvahQo68l0vzM4FG/ruNapRB6q3bdzPsJMoBl0Dk29X27FC1qFMgsEubXTzrAYdHJNidK6PYafgKL7yIm3qH1h59uw1Uy0UfjZ1xcc039qxIeQyldM8JWiBEyToOIIQBDKSU5ZBVHz7HiPOfj0skHarICTAhkJrN84eWRLKWvVXFpffD8clcEj8IfQf1fCABq57dXEjAL8oR3xB4HaBP0nzRlIyBAH4KTwonyettDWs0N2x5ngktB78RLhfZLZGup/wspqPwziDzFb5ONqW1E9ibjyPUleJeNmLm8YD5UcVk7/OMrL8C+HLFEgcO4LZdKrpoDkhcXI+sWMCV6JSjSJjGryg3xthJ3iU3g8Z4SzIuV6LqQMC9kk9OW6JUYOGOGl9nVQeXVoLBAL9SHfQl3L8kpcV4DnPIy7TdC4GiOL/qNcY/opznQviQ6GsRnD76gXAD72klnhFKB4hP3eSxok0A3cUmj9nSe/UFBXnnmmC73ULCeQeZyasXKRejdUsFiTPelOf7yTa+expM7LL8jTY4rls/y1dOQ/CzLL4k= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046);SRVR:BLUPR07MB610;BCL:0;PCL:0;RULEID:;SRVR:BLUPR07MB610; X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB610;4:pj6/Z6fVxWCw4HM+3uaq2lZaMRyAwsHkWU01ioivUNi5MQcMkTWvnDIhwkiyrAHof0fcNsbWX6QLhtfXBhyk4eAnYGYQ4mPKIl3QoRSH+DZUPCpmwY6FWJOxTlOXrByCJVmpbEfoNTrgGsnXJNhKu2zO0NyDGB3Sfg5o/g0dkwpiwiY1DhVEazDRMWltgl3tK6fikWBpNa+MAjFh90pXObJ8QVChm9J26VYuHFmA7/9Wiq0J2b/3BCOcsweIsb+dm2szLygkLRvm6h2HreUTGZrT89gzcF3C5r+TMU69Vt+0e/xzDaNcaGm9/QL1u5X79nZbfTWwZaEgJyozhQPhVap6Au4EEbMmNR5ZBMWNIW/6rrZIOtITvzGFWTHfEisWKLWe8lo0QlTb8W73MUaW1MNJf830ZgmiaFy0QyLUd85de0GTcQgCLbWRdbicIaap X-Forefront-PRVS: 0805EC9467 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(199003)(24454002)(189002)(50986999)(83506001)(4001350100001)(189998001)(33716001)(5008740100001)(81156007)(3846002)(19580405001)(50466002)(77096005)(1076002)(586003)(46406003)(1096002)(23726003)(6116002)(97736004)(47776003)(42186005)(92566002)(101416001)(19580395003)(87976001)(122386002)(2950100001)(5004730100002)(97756001)(76176999)(33656002)(110136002)(54356999)(40100003)(105586002)(5001960100002)(66066001)(106356001)(76506005);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR07MB610;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR07MB610;23:/zqLyDLlhqdK/mlBlFdqrOqiZIFHzl44szk6G8FLKV?= =?us-ascii?Q?h4lW8EfFe2gXNJ2FpUEm5LpV//weghSWuDBqXM63iM3ii7G68LscHYHD3D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s6VkGkwZIe1TxPKbgBXXXijkEi?= =?us-ascii?Q?i/yTPd65OC70G4MJqmdXgfcl3k9JJBINn4GHSSE/jpA9bWNTXK84eKsaKJpB?= =?us-ascii?Q?dH6V8ekVK2LO2fcA9E3xDnt1K1le+d2QzDJRWsUmG8PYTuMvAd3tcr1vQaNE?= =?us-ascii?Q?9nwaZ8ZQc=3D?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB610;5:l1EJxltsbrG1fDaOQynq5mXQ6v9StMw9z2JUhFfSdT/mtGbK9b/sA2RIC0Pn5FFkbw2NRE+DhKP6Bhc9WUBUiCx/mNWB1tuuIzqmgDIGNcJ1gxDmPIS5WjWKlJiDxEyrVbcQbSy+WxstCEmfXn4tCg==;24:KrbOZu/umXog7OYCTiKrLEBrGP/o1R5cnW2dJRsdVkrfOZpmbZpcD/KBVG95Ke8be4p8guGqw+2kZam0iERtRC8lQ3+1IahBF455GCVAfig= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2015 11:43:56.9755 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR07MB610 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1494 Lines: 37 On Tue, Dec 29, 2015 at 12:02:33PM +0100, Arnd Bergmann wrote: > 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 I'd prefer asm-generic tree because they are not related to ILP32 only. Yury. -- 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/