Message ID | 1452209679-19445-7-git-send-email-ynorov@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4176EBEEE5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 7 Jan 2016 23:40:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6AB4120149 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 7 Jan 2016 23:40:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8894A2010E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 7 Jan 2016 23:40:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aHK9I-00020Q-1g; Thu, 07 Jan 2016 23:39:20 +0000 Received: from mail-bn1on0077.outbound.protection.outlook.com ([157.56.110.77] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aHK8k-0001Km-DJ for linux-arm-kernel@lists.infradead.org; Thu, 07 Jan 2016 23:38:50 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.121) by DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 7 Jan 2016 23:38:23 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <arnd@arndb.de>, <catalin.marinas@arm.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v6 06/21] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Date: Fri, 8 Jan 2016 02:34:24 +0300 Message-ID: <1452209679-19445-7-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452209679-19445-1-git-send-email-ynorov@caviumnetworks.com> References: <1452209679-19445-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM2PR09CA0018.eurprd09.prod.outlook.com (25.161.22.156) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 2:ZRH8OzfZ1pnwcXq69tPjMXt2Byw9bwvcWITuz9HGOaMDFaDl/QzyMSTouly/2f/jTtKl/+kUbQuVnUzcsh4OxZDk6w1xMidkBXYfHiAvT5Tzcclu7noDZMH0ss2F93mCSazUXaJMJJoXg3Gvjr70yQ==; 3:5AhtLV2y+6AEDmigNbw1XQv5d/lb2XgF1l+OgP8vHqzetOVRYjvuTxqkSslqQm3pBC1MPtX49GFM2AvBlNQflJHfG2MnZBKuZmndWd5imwm9yWozl1FC3659OnyJHyT2; 25:FePuYs7RVnXEbiDy8I414A4KeBXCthSEkbiAoTfb4648dn/i85s0wjJalJX4HsAdmViz6PT+mIPG6YW+aXWoa3pTwM1euL7L+hM4avccJz8/LjMNsnlNRVn+qXDWfORW4DOYPerIyS4rMcU4KQFvOyVObkhDiffaLJQ6aURfnArWJ1EmJEiYQgFk4QKZR7pO896mo/qbNwjYaPIfQSmhAMqhenMQnLxqMg0N4RN87oduw5bJ7l1mIat2EMdbO7UX X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-MS-Office365-Filtering-Correlation-Id: 8bbd95bd-c07d-45ef-2007-08d317bba23d X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 20:g0J6afSrfSR2TMshj+wNVtqIzU/RtkVuw3dVU+9ACFizRvJ0LR7fEOQPjiphTTGQaabYNLKv9Ki91XqeUpl1w64YA7WmPHyyZVhtkpgN6kqjqctRH0HZgqSbsIGxs4uWooeJNIJ35YQAwdvbWEU8QZszvx/8gK6LBGsWhlo8TStC31KMj/tQn84ow+yT8WBnm/2S92MVo206YkPHuhg76r/CF4n+xMeGPdTK2FHTCu/nT0ucf4bFPea8sClG46bKjgoazKz5xrOik7eXZu6yQSeMe+gX0Im1Kqk+n4QzbHCK4jeqR6+Y7+sibzJbMJs17E7ZqcLWBE6Aj9lQSeozSij/PqR/f2aVNH/WwMJSkgJ8AzdsjkO/hjtxzYlmQqmeOQLfaEoSw8UCChxMB7jik59+mHg1vytwF2bXh5Cnh1+/6VZ5HpfscTIkH+zw4PsRU5/hQl45Gq+uiuVhiUVmS6RWb0AWQ290Ny4CziODuXsgihlC5UXxhdbjKmnEj5VajCBpqlBwcDKnxWCNU1z2uvxNF16TekF5mY09SVHW6BoPKrL0wFwsGnT05vBeprLXUl+cRYPKV0MRISCtbx8alcHeE1J/4mOpu7huyc7wErM= X-Microsoft-Antispam-PRVS: <DM2PR07MB624C9ED71EF6D73FD2B3822EEF50@DM2PR07MB624.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(3002001)(10201501046); SRVR:DM2PR07MB624; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 4:4TQWKscM9AFGpg0mDoUoMyOnkwFfy+MQXOmLYgRxPVm+5XDYIHB/BRtG0Wss6NWLCFzgVh/tE54wYs1m0ORc0rku7hxbFsExAl0LCDE3p+UIqeY31fgMiaWzO6t6E5lB6vm6UtkPqyDZNYTQse+qCW/9nRgFqZhyMZq3YeMZgnlycOcTy9dp5BBqY4XBNw16DelGag/elMpCNnCtwEMrBWHKwpXhaQ73N/6qt6w8JPiBCC+6khdCDJPTCqdBUvtFq9aQch1Hi0YRnRW2VA5oQfEFSrKVBEAyTVsCg8MKIAIPBURA82RukhA2SmcBd3J6a3/fbUhhRLtOhOIkC81g/sakm0oD42UjwXNIh7r1w7ceeLRYXwmOCrbxWVVrLPqLevvF4HcEMNfePhBVLEXW5rVUcMnFnL8buA4Hj7rxbsUGZ4A7cgwg9LoCLTC0ap+I X-Forefront-PRVS: 0814A2C7A3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(76176999)(101416001)(50986999)(47776003)(106356001)(2201001)(19580405001)(19580395003)(66066001)(2906002)(87976001)(42186005)(76506005)(105586002)(229853001)(5001960100002)(189998001)(40100003)(77096005)(5008740100001)(586003)(122386002)(1096002)(36756003)(48376002)(33646002)(81156007)(4326007)(6116002)(97736004)(5001770100001)(50226001)(50466002)(5003940100001)(3846002)(2950100001)(5004730100002)(92566002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB624; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB624; 23:hplHic1RbOx4qyDwkl1Obo0tzjbxnaG8eZ+ieVAW0u?= =?us-ascii?Q?HbcVMNYPKaiCBTQUxiCwx+Z/P/YUueyLXmgqVdXSBpBqkv7L6wJkmbcs4q88?= =?us-ascii?Q?Y7WJ2hlOxSByF2B+Tzb1/YuqCNu3PL3JUHgcQj3vBR5YsTEvwifRJ5mrHuh0?= =?us-ascii?Q?dy+36OyaOD0f5U58YyPqQ1+hpUTWLgh3gXOvuZizWguvBv/q7WCaSVarb7pK?= =?us-ascii?Q?8dPjpX6BKmwyGrTdidRK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?Q?lAHAGfA9k=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 5:5kLoyxKLCLRyJ3O5PpCyWdKIIJbbiY7Y2x4NviOlYsD/l1mCyPr28NBtruh2ej5TmTTtNhwFt664PMGFU8OokKCUCmGDvnnDKNOxhNcXDPdx40e+xipAN1DdEiy1e1jNbg0yq9Ux1eaeCAn2iE9c0A==; 24:piwgcGULXumwB3sVCZ2VYkefBAvFw4/px21LCoFz3Lgw4MPJd/e5bbHC6zfU/kg7LuOhfXE3Ni9QtqBJUlv2kIxdQ2Dx9Kc4JgMFglLtxUQ= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2016 23:38:23.3703 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160107_153846_964761_164A1846 X-CRM114-Status: UNSURE ( 6.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, broonie@kernel.org, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, ynorov@caviumnetworks.com, jan.dakinevich@gmail.com, Andrew Pinski <apinski@cavium.com>, ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h b/arch/arm64/include/uapi/asm/bitsperlong.h index fce9c29..4265243 100644 --- a/arch/arm64/include/uapi/asm/bitsperlong.h +++ b/arch/arm64/include/uapi/asm/bitsperlong.h @@ -16,7 +16,14 @@ #ifndef __ASM_BITSPERLONG_H #define __ASM_BITSPERLONG_H -#define __BITS_PER_LONG 64 +#if defined(__LP64__) +/* Assuming __LP64__ will be defined for native ELF64's and not for ILP32. */ +# define __BITS_PER_LONG 64 +#elif defined(__ILP32__) +# define __BITS_PER_LONG 32 +#else +# error "Neither LP64 nor ILP32: unsupported ABI in asm/bitsperlong.h" +#endif #include <asm-generic/bitsperlong.h>