Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752884AbbL2J1P (ORCPT ); Tue, 29 Dec 2015 04:27:15 -0500 Received: from mail-by2on0079.outbound.protection.outlook.com ([207.46.100.79]:58530 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750906AbbL2J1K (ORCPT ); Tue, 29 Dec 2015 04:27:10 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , CC: , , Yury Norov Subject: [PATCH v2 0/2] ABI: handle 32-bit off_t for 32-bit and compat ABIs Date: Tue, 29 Dec 2015 12:26:33 +0300 Message-ID: <1451381195-9315-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: HE1PR02CA0074.eurprd02.prod.outlook.com (25.163.170.42) To BY2PR07MB613.namprd07.prod.outlook.com (10.141.222.144) X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;2:6qsPUQ6g7Nes0GiPLbCpXcsMwrKzEotXUyuP2DUuieznQ1a1MIht0MTEx7cheHS/r4YEgJz8wpXF3pavaOJMhxhImsjJRGDP9xdatJuId3U+Ow4eNaTu+4pvjz3nt6nUmPQnIMezXbuADs1PYSF2Ow==;3:yPUamRuW4Ook5K2s5XAzj64ajmYDXY4hn+yDOnKHebNWxAXxp7j7QUXvY/sfX2Sbl6REDBAtdaYbdC9UKj0LmvHuh3kV41uNiG9onsYctss+Vn6g5jM7crFNyJsoWfca;25:P6ikuQAcO5kPQCrIpeZXiTjYarzvrYjT0OmbIpIt6/HTHIrUdssKtWP5jXpQosTJix/tCc7B0lIjKKtsfCijBpkO6X/2JiIkBlnnyNoUP2NqMtJI3qugwCbDJMmhte90onBuPIQw5A+yWY/vqELQcZb0Yi65v7paRkW9DF4ioPXdTHYSXfIan07MgmsAZ3OI2uiU2NaJngTA4tT/A19cyhPi9vB26/HfvzQIVtZ70CLV+Vlxttpcr3a+InwawhQ/00SHD3X7LzAJY+LV4MNJcA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB613; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;20:BPX738o+vF/iQyTyYI4i7t56SxvaritegQXORJH69Y+7LCSWAwn9ZfIhFgB0SldgcmggAtQDMmOzuTbNoO0YrcAFnNerlz8Y3gP3fKb4HUUhLPZAYbDUELniT63ljKKV4CDXDzW35weT/KG7KwdOo8aWNiA0dt8rEBoqIod8kKqMW34r+6Ow3LSSDYt5j2xSa9XbMFqj7tCmNk7wS5XmpjykseWgVGqOBP6HPbcMGqL8dWy0ZMx97ri6S14U6W7Nur8DQqLGI7D+kxtSDz+nAodwWF7TP3XGce6gJiAgvN4E24jVhnhuFRoTU40be4cCoRN8wVEiMRRzmcJNMMzAoL/flV1aEX2My3xaxjvGIt4h+KU8zxFV1n3dkdGOx5TdNfB6n+bdHPpy/sEMs+HGcAta+MnD8B9GzyRetUV1SMj/jjmBodQxmiEm3AB2dALFksuviB03O3nhJkr+GOFj6bOVJBy0Z+W9lW5m8/Kd9o00nBaXaXgokGCIDhu0dmkVq1CN3K5gBdMcVsnVOeYcQs1QUbvOcDQKofImGHnbeFXulZADmv8pAQV+XTn+wledbg8oqz+/caqXzaeOo9kQ/PxzKdVp4jq1K+f61z69kuY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046);SRVR:BY2PR07MB613;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB613; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;4:eB4sw7Vd9T4Pk6x7I+MPuhU0T8M0mJ5Li4EYNkiqdLr8GLvk3Z8jrRh+P/Y4mL9PUMqwo1PfNRnUzvznU2ZVr3ll2i8nPRrP/yTxhTPI/Dj6yE+LG6iVja8emYgFri+UbBlTHJzqkP+zs12B5Zjjb/2esIgMSYvDZ+WCEQyYdDky/sJyRmFBySBuClc443s0wdb39QlnMtrUvSzgjirnIiVDzqzV9syy0sS6nFNMuJA/RAoMKDsvZcgcza6e/bOPdg94fVa8lzuJRo5ZDMVXGXVhmzSHLpxQkg4dsy+ZUjVwyeVpqzoZSQlNNPABO60O6+3USzQNHAaYPwYjBNhIdroDzEeEMdNgajENL1d6ykttSFu7vbje0Ppmpb2YOPok X-Forefront-PRVS: 0805EC9467 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(199003)(189002)(229853001)(101416001)(77096005)(106356001)(50986999)(76506005)(105586002)(2201001)(189998001)(5001960100002)(33646002)(50226001)(107886002)(50466002)(5008740100001)(42186005)(122386002)(1096002)(5003940100001)(6116002)(586003)(4001430100002)(87976001)(3846002)(48376002)(40100003)(81156007)(5001770100001)(97736004)(47776003)(92566002)(36756003)(5004730100002)(66066001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR07MB613;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB613;23:5heUQrVFFTT5bDsqCxmw6HobtCVSNwfdkHF2POT704?= =?us-ascii?Q?px5YN/qt1XPdMoz90f1lWjdJKOEy6Hw9N1eHhimIY63x4QfrjPUOlKJo3LnL?= =?us-ascii?Q?XSq+Noy6WVcDmCEjbTC5cmyI5F3J58oJ//gLjzbfrmwkzjIas+FVAsaXFiQv?= =?us-ascii?Q?4TUZcy03dje/dkDE3aqyFP4OVklrelLCjIkgwyeqM0/Nqwy19Y3qkLDPXCUW?= =?us-ascii?Q?d0/iJ0LkMA4dPSALGUqOgt+5YIDGzxoGgbRYXpz6U3qzWgh4abfIoNhsw/tz?= =?us-ascii?Q?1mgOK/4HBZuvBI5en7nEYC5sP28vH4WiS8D/I1pBR4n49wvS0ox4UIum/Z2E?= =?us-ascii?Q?et5fSBCaae/BbCKlwSon7+HoR3riGukLuwXjpV7YVSKOx3KoPWxS/c0z4I8H?= =?us-ascii?Q?BejMyY9fqxx+98cEMaH4jabFBx5FnwiAkgkppPsH3Trw6mtCOIx+o2w+oT/b?= =?us-ascii?Q?zRusQXizqLHDPkDkrhZz0lJFGOeovHBj9FDfujkUz8Fr7J1TbUPoc6RQZL30?= =?us-ascii?Q?VdSHATcitDWx7aUSfl2FA4SN3QWHoPwwL/5aQPkAn77rxCEGfuM5oHn2ldPT?= =?us-ascii?Q?0sY234H8Lo96g6ZzilclD/ar5SJdEniKFWKyWGZwscRghxONhjQnlB/IaN5m?= =?us-ascii?Q?P3nMBgmDHMEknwPt/AyRV+nCxSufFnCxfa+ZnUs/0YAf0/cyAO/PKMub9zsz?= =?us-ascii?Q?TgkK4fG7xk/8csmM/kmn7qTQfzmF5n5zOyJx1SGGSmBC85ejtU8879/5NQ25?= =?us-ascii?Q?X6+gaevdPR7epNqOuEivVY475P+0xRoYjSvlyx4AM9SwqLxdAKSa+nF7DAwr?= =?us-ascii?Q?XuLnN/Sg+6bOIhokM4EOh96rPM/b7PGhsR7YUtEr/uzbSdQnwyRaid2XstdT?= =?us-ascii?Q?+YY0JLtdZjVxYPii7tEIU8F0o/2/COuhBEBCpCMHIVR9QjH1DZJRkAr4AmO0?= =?us-ascii?Q?gzKmiMKMiLG/9c1he1vMbJdhOiGhOTb5ro03xGw6dWa1FBXv4446GnSC4Yn+?= =?us-ascii?Q?CByShk6K7oTV5DrzGPiZG6ce6IzFXAr9c+ucT7nLbNEA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB613;5:ajpTHHgp1GIAa7m4oIrMZ9ECY+jiHc0HFICmR48H/1EjYWcSra01t1cm5ciR0feuzaTTZdbXPZCnht5rLJbSMLzDzIqzElbfq4bvFBBSp5O1Fez5xcz3L3DiVJjLgo0k3jhX1oH7Z9+2uiMJZC7klw==;24:bgCnXCBEMxY7pZZUyNwHc6mT4PzQCBfDctE4vX51a1SUK2mWbUVe9L7mSrXb6nBhDqxIC9HgDtbUQ5TpguZlD52En3Wd8SzXJNaFKAyKp6s= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2015 09:27:07.3829 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB613 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2447 Lines: 62 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. v2: - removed ARCH_32BIT_OFF_T for IA64, s390, as 32-bit kernels are not supported there. - patch 2: added Arnd's note, - patch 2: stylistic changes. 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/