Message ID | 1452792198-10718-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 oa2csp16831lbb; Thu, 14 Jan 2016 09:25:02 -0800 (PST) X-Received: by 10.98.64.142 with SMTP id f14mr7774357pfd.83.1452792302254; Thu, 14 Jan 2016 09:25:02 -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 qp8si10437781pac.229.2016.01.14.09.25.01; Thu, 14 Jan 2016 09:25:02 -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 S1756321AbcANRZA (ORCPT <rfc822;mathieu.poirier@linaro.org> + 29 others); Thu, 14 Jan 2016 12:25:00 -0500 Received: from mail-by2on0073.outbound.protection.outlook.com ([207.46.100.73]:65152 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756284AbcANRY4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 14 Jan 2016 12:24:56 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.121) by CO2PR07MB618.namprd07.prod.outlook.com (10.141.228.149) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 14 Jan 2016 17:24:52 +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: <schwidefsky@de.ibm.com>, <heiko.carstens@de.ibm.com>, <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>, <joseph@codesourcery.com>, <christoph.muellner@theobroma-systems.com>, Andrew Pinski <apinski@cavium.com>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Subject: [PATCH v6 06/21] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Date: Thu, 14 Jan 2016 20:23:03 +0300 Message-ID: <1452792198-10718-7-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452792198-10718-1-git-send-email-ynorov@caviumnetworks.com> References: <1452792198-10718-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: VI1PR05CA0005.eurprd05.prod.outlook.com (25.162.33.143) To CO2PR07MB618.namprd07.prod.outlook.com (10.141.228.149) X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB618; 2:rZTSPoyB720Sap7kTznxop6XQbzSQiKElSmipfRpY1tUEhczgmrfzYlQd1rcOT7Wk6HY+WeiYGb3L1rsw39I4hVgwVvF3VmX+dxZmkv3PMRdZO7TIWevmzuXofyD4y+QEIfntjCsGhNlEE9ZIKjiAA==; 3:zhbLQZST1lF4NmeWnVoepwY6a36yVj7EDtPc/7z9EvBmpSwlcPvV2OPTY+1bPMSDhTPvzAlC/ZrYACU4YyhHoSz9EOuR5HHLf2RN3kvARSRZypMw7JqwixcPGi5Ra9aV; 25:0LCyrV9TG6kNJXnTzphWFIW2kUK6ato3g7ddJb5Eu71tedj0QVSDIpts6gKjrJdbxxPEjTsAYr6NzKxnr49UMjCNsVpkzVa04MxDX1suhpgpi962cKdctZwpW5UkalpZz9TIOW8XqvFTDLrkpWV9bGkScAPmj9+QjLfZQQOzFXQ1RT2RiFs9Mc2O/bp8RDFwoC7rXK3d4GYoyC+QlqIVkcPdhpq5fIi0D0N5FrLPqTRJM11duDFoQ8IvQi1OtEe4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB618; X-MS-Office365-Filtering-Correlation-Id: f7a285ed-41d5-4749-bce4-08d31d079d26 X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB618; 20:YPAsMQLAyS+caTCk9LQl1BGHtXMVGpj7GQI5WIRrpSKz/60a2ru4/VTJQ0lbYySrTyWcXvQIa8rWXpm63DCrFuw2tsPkGq+a/lqAyPn+eYL0bglxdNui8mt9l9+dgma88HbilCzq3kzc8wY1G7Cv5cTdGZyKK1V8O7eEEiGlIDjl6VLzdRiHY9nZ9UN4v5lCNGFCOxbERYW57LE/46GQn9W2fDF1ZXTPto3kLahhxSBk6fXhSRvDCszS4Q9tS0lOk7h3zCrzCt41zJzVqtVFquQMbjMHh4luat0nDroQB80rEEeBmlCXEKd4RszXS/0FZhR/hDLeSvPtBlNAtIjoCtU0yVE9RkpefDTh0gf6ke90sMVBopZ9Cajtp/tY3ye1Xgt8i/d28TeycKTRMdipiGfOKUgeQywJIvdJ/nrB9Ctz89uqs76EZdlCas9OGHjoRCU9MXm4Zh6vz8VSAmncPOzZ96z3e8HhuVv63G+x/POcXQFvswa80XH7JPe+wJ4wD+VJIRN5C1eTrb+8Gr8f70w+ITyl5ofWIebokymu6d7LjmKrxS3LCONCrLENMPo0P1wVz6/iJsvXGOF0qvdWwRUlRaWPAg1wIr3tMhUR2AU= X-Microsoft-Antispam-PRVS: <CO2PR07MB618F2BC3E5CDEC979FEDC12EECC0@CO2PR07MB618.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501046); SRVR:CO2PR07MB618; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB618; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB618; 4:F+wsRRpjbph8/WFbihOkBWIO1/fKQMM//oH0IqgZ325Ih5uQv9eF97gljZciSZF/5dgnEwClYpq4+a5yU00wDi5m6g2dfBBKxGDpglkqCjHclzCEPiU4/gqSlptoLwpwRJ4PmDzmG1qEu/ZvbQgdXj26J6pIV7lhAiRpUPdIIcdvgrK/HK0KwrUKvMvUx7X+fSk0szZNcj0Kt4pK5pN4g+gIIbzONPpb+5rbtYEX96uklFmGaA9Ig3URIkv5r6GaSw4H3VIAHuzn2Fkdcux2KSMgpxo8dSozP/27GaTm9x+yx5tLKX63x36mm8pSXYtO5bCsMNT8k13i0FEaa9xvZdSocHsU9iwVRSgYGWEpsBAzTS54uNv3DX+QnuI9PmPhZV4O62GoJuQV2WFYRBRQ0fkvDIdJkt4E7LKDRPh1kxbLg30DMmq/UA/KqXZNIujt X-Forefront-PRVS: 08213D42D3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(189002)(199003)(5008740100001)(189998001)(5003940100001)(2201001)(2950100001)(66066001)(50466002)(81156007)(5001960100002)(48376002)(1096002)(105586002)(47776003)(50226001)(97736004)(6116002)(40100003)(36756003)(3846002)(106356001)(101416001)(19580395003)(77096005)(5001770100001)(19580405001)(92566002)(229853001)(2906002)(586003)(4326007)(122386002)(76176999)(50986999)(33646002)(87976001)(42186005)(76506005)(5004730100002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB618; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; CO2PR07MB618; 23:JoTLTVD6XTgxN9ODCj+0sHJOshQUKgqTDNAt3irprY?= =?us-ascii?Q?OL1AYKXhJy4Dp2vp2KP9BE2GPOMAtuAPXnfeRMcQ2H0I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5IYJ1lMzb6UVxJA9CY2nkaws2j9d4jlzbh4JG/J6b1h0Uc?= =?us-ascii?Q?/jX/FiMPzw8k+NB2qtB4c0hj1apxlUYNBjBV6vpqNLgvhTHYmKh0y/bbh42P?= =?us-ascii?Q?kWe39E1v9ytjl0vhbX+L2ksCjyXkyB/z6P3x8dBf8u1ljDgAj7GS+vYw1BDY?= =?us-ascii?Q?fek8ZaIp8=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB618; 5:xSHZAKScjsof02JrejC5f2t2dDX+8XkYv6+6eWn/SPWsUqvptfJB68cdNTmo66qtXFNsBUu0UOFcXJv1qm9bZgCxjjdN7qCsbW0FyW2PFJl20LRUHpF7ZI+iGxnnlVo9PpZT2YIHmSw1euhbN3h1aQ==; 24:ry6rPuKjUiZxCaIEgbPnGAhEe8VPL3wa3lUCU2iunzJzV+uQGGiakQF+qkRbQu2qVYQ+OfNL0S7dNGfuEccrc3srmklZVy2ve1Hoeol6Uy4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2016 17:24:52.2753 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB618 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>