Message ID | 1452209679-19445-7-git-send-email-ynorov@caviumnetworks.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp222071lbb; Thu, 7 Jan 2016 15:38:32 -0800 (PST) X-Received: by 10.66.250.165 with SMTP id zd5mr81516199pac.9.1452209911884; Thu, 07 Jan 2016 15:38:31 -0800 (PST) Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ut6si15867927pab.68.2016.01.07.15.38.31; Thu, 07 Jan 2016 15:38:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753929AbcAGXi3 (ORCPT <rfc822;mathieu.poirier@linaro.org> + 29 others); Thu, 7 Jan 2016 18:38:29 -0500 Received: from mail-bn1on0095.outbound.protection.outlook.com ([157.56.110.95]:16199 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753419AbcAGXi0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 7 Jan 2016 18:38:26 -0500 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> CC: <ynorov@caviumnetworks.com>, <pinskia@gmail.com>, <Prasun.Kapoor@caviumnetworks.com>, <schwab@suse.de>, <Nathan_Lynch@mentor.com>, <agraf@suse.de>, <klimov.linux@gmail.com>, <broonie@kernel.org>, <jan.dakinevich@gmail.com>, <ddaney.cavm@gmail.com>, <bamvor.zhangjian@huawei.com>, <philipp.tomsich@theobroma-systems.com>, <joseph@codesourcery.com>, <christoph.muellner@theobroma-systems.com>, Andrew Pinski <apinski@cavium.com> 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 Content-Type: text/plain 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/YUueyLXmgqVdXSBpBqkv7L6wJkmbcs4q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xx60XAiMQ6HfjhYiNuRi0dv4vAB?= =?us-ascii?Q?UgmekSDw9TG/9xNYQkXaAaZKmwQ1srEj3zzZnXAOG7l/AsbZ1M0GyJYOe2Im?= =?us-ascii?Q?jqMVODt/+SE/PSugCNnUgVscDxXwDO1V10d6PXATbcS1RcGcpgOfTD2zUPAz?= =?us-ascii?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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
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>