Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752815AbbLZQHL (ORCPT ); Sat, 26 Dec 2015 11:07:11 -0500 Received: from mail-by2on0077.outbound.protection.outlook.com ([207.46.100.77]:18432 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750885AbbLZQHI (ORCPT ); Sat, 26 Dec 2015 11:07:08 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , CC: , , Yury Norov Subject: [PATCH 0/2] ABI: handle 32-bit off_t for 32-bit and compat ABIs Date: Sat, 26 Dec 2015 19:06:38 +0300 Message-ID: <1451146000-5646-1-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM2PR02CA0005.eurprd02.prod.outlook.com (25.160.28.143) To BLUPR07MB612.namprd07.prod.outlook.com (10.141.207.27) X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB612;2:6j8Mih/GjzaS5HaDTCIj4UijhJpzELv82vD0DJGQ8C2F48waC65966NBBWrEAQ7OTitzK0f6mTGhEL4207ttbk7h0KNjD6TF6mVDvgVuUMLjlriwdF/W7YM4kTdFc+QuvXTNYVo0bkn3bn7zjwwe9Q==;3:uR5/x2hDnEg9enS7AImkP99ukxxdDhzCFNHnxFBhXbdJ8QgdcRxsNmc2mdOMVkhrkD4Op9ovtYbsymJBP2LFsLeGNPNkiLh2kRBfWl5rOKi1/kUgy446jrm3sEAdD+jb;25:RpF2+A3VS9Hr7w6BW/trNTku9xbOkGDTDyoGEcAPzmiSrwKnGvuaGbYxw5OWG3VJn9MrMv6jNZcqBijQVZm80XRRs/PS5uPQhtDubGT+TVgZGPemh6MDVgDzXVXb2OiHF2JjzQW1VhWXHZqXhPR/2NemokqTzZ62uVq4RbraXp4Te3b0/gEvzORCixdFh4vTe20b7gJs9GNRIs2F0rkOi7foflOFvEUwFfPs6dTA3n+ZvtNdQm3AsMVU/6gzMn+yEprGXp2nX55JOXT0BFeAiw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR07MB612; X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB612;20:or6OSu9uZCWMSUEHXTM8jdDv8NZHtTUCwv+SUi14rSgqDjXebgyUs9I9wxZbA8aYZuIGJTtOKfehOS4GWdCKVL+LBWH3AHtsPUVbQtFIiEBPsOhCeh7rTRaYIqHzCzc9bLbRRtpGDo/US8ZzRL4RdichKnTncVPSxb7suZ9XSOBrZGRsXzScw4lD9W0OV92QnBf1S3XGEZiW8IBs4vhED/wxoZpD/qegwW5wwKYReNv7WRTadNNlW6kGTXU6S0Xr9s/tTRRAe7P5ddxqcPOt+YsaQiaPtb1QPbozOEI22XEdwaon2aJoFmMApjgb/HJm3z1oyUQodEi8TCq3rkZZ8/fvyTZSKDDae4AIvMsle6rc1C9XjYBAYPKe71S5oACA2uQ93PmnVJ5bdWjisqeYmKaw2dLwViN6uhWqNj50vrIou18hnL1RZe0xNLL9Ue+U7fqG8RREsIxKZ3RF/1Nz322eZZNdsklqpKsUTQCKFU3S9nvEF5UPBF1PRfuKddnwlNCzrMaB8EM0PDeTfoyculMETbIJVMPmFUR7LYh2rfYol2cLV3CwExSht0JgXOynWPRv5B5zaU91n4utm66A5PLGlExFx4vaRY1WfwjmkdI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001);SRVR:BLUPR07MB612;BCL:0;PCL:0;RULEID:;SRVR:BLUPR07MB612; X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB612;4:lwG/SNOB0LtXqjY+Q92PYHJeZs3aINDRM42ajBzF/sYIhhmTxICKhLFgUCIZZCGEAxWx+xirQPyWXnntX9hHUgO9opPwpKJi26qyIBSjn9L/GRhuvTQC+tTRuMPTfQ9aIS1D7BGURYoM5/weRAPqMSfa3q598vaxkMmAkngP0skU0UDEkV/Q6fo3WCaWos65eoq2CeaHbzFXaga5NguFohxTX4QvOlpacKhW0xyj9cdl3sXdSTVv60vu/6ZtHEP87+mM2iWsvhrLn/rIA5ioQysPyUoNu78xds0PR+VEHhMN9p9Tw+/+vJjcTCN5Sx3zElD3g2QumGz2ApwIeRD2LxUCNV/es3fZiX93wOclgvjIXhZIsAfizoCxoZ2BbKsv X-Forefront-PRVS: 0802ADD973 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(189002)(199003)(586003)(122386002)(40100003)(42186005)(33646002)(76506005)(105586002)(229853001)(87976001)(106356001)(97736004)(50986999)(5001960100002)(81156007)(5001770100001)(50226001)(107886002)(189998001)(101416001)(36756003)(5004730100002)(48376002)(1096002)(4001430100002)(5003940100001)(66066001)(92566002)(5008740100001)(50466002)(77096005)(47776003)(6116002)(3846002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR07MB612;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR07MB612;23:09SD/wALUe3ruKCyL+6WTZm5uM2L6+XEEvglFmxcdX?= =?us-ascii?Q?pDwHS/ES6dRtgDOg/EoE9MYVIFcA2NUahJqyUPHAYaD4WDrFQlIAAQJoBlaI?= =?us-ascii?Q?tT6hLEv7P6vRHETUR3/zYnbYr8OmnrDA4FLqDQh9LXMZh1EkXKlCsxKs1e/g?= =?us-ascii?Q?wxl7cw4jZrx2wGGBvOkwDOc2mT3nLycttafSGgq1PLtgymg+LqoFrh5df8op?= =?us-ascii?Q?PuT5JSZzjZ8A40/tcIYTjgA0pvJz/ep2TGi/3jIzGYmyzjP54iHRuroUNnz0?= =?us-ascii?Q?wrfzkMrLoL+4xhpt1amK/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riu+y1+ylUgH+N55r5sBLPdVom5m6xdwrk5sqh7LB1Kv8sZK/KwCBX4lf8pmnoM7BaYI3g5zmirDjrlXYfFgB2TY1T5AmhHiDS+hq8v2M= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2015 16:07:03.8232 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR07MB612 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2293 Lines: 57 32-bit off_t is supported only for old 32-bit and compat ABIs. New ABIs are 64-bit length only. This patchset makes 64-bit length the default for off_t, and reverts it for old architectures where needed. It does not change the behaviour of existing code. First patch makes all compat users of generic unistd.h to use non-compat versions of openat and open_by_handle_at. Tile that requires old behaviour is turned around. Second patch introduces ARCH_32BIT_OFF_T config option, disabled by default, but enables it explicitly for existing 32-bit architectures. Yury Norov (2): ABI: compat: use non-compat openat and open_by_handle_at variants 32-bit ABI: introduce ARCH_32BIT_OFF_T config option arch/Kconfig | 4 ++++ arch/arc/Kconfig | 1 + arch/arm/Kconfig | 1 + arch/blackfin/Kconfig | 1 + arch/cris/Kconfig | 1 + arch/frv/Kconfig | 1 + arch/h8300/Kconfig | 1 + arch/hexagon/Kconfig | 1 + arch/ia64/Kconfig | 1 + arch/m32r/Kconfig | 1 + arch/m68k/Kconfig | 1 + arch/metag/Kconfig | 1 + arch/microblaze/Kconfig | 1 + arch/mips/Kconfig | 1 + arch/mn10300/Kconfig | 1 + arch/nios2/Kconfig | 1 + arch/openrisc/Kconfig | 1 + arch/parisc/Kconfig | 1 + arch/powerpc/Kconfig | 1 + arch/s390/Kconfig | 1 + arch/score/Kconfig | 1 + arch/sh/Kconfig | 1 + arch/sparc/Kconfig | 1 + arch/tile/Kconfig | 1 + arch/tile/kernel/compat.c | 3 +++ arch/unicore32/Kconfig | 1 + arch/x86/Kconfig | 1 + arch/x86/um/Kconfig | 1 + arch/xtensa/Kconfig | 1 + include/linux/fcntl.h | 3 ++- include/uapi/asm-generic/unistd.h | 5 ++--- 31 files changed, 38 insertions(+), 4 deletions(-) -- 2.5.0 -- 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/