Message ID | 1452792198-10718-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 40456BEEE5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 14 Jan 2016 17:27:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6547420497 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 14 Jan 2016 17:27:24 +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 D05AF20499 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 14 Jan 2016 17:27:22 +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 1aJlec-0004d8-Eg; Thu, 14 Jan 2016 17:25:46 +0000 Received: from mail-bl2on0079.outbound.protection.outlook.com ([65.55.169.79] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJle9-0002eJ-Rr for linux-arm-kernel@lists.infradead.org; Thu, 14 Jan 2016 17:25:21 +0000 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> 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 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?OL1AYKXhJy4Dp2vp2KP9BE2GPOMAtuAPXnfeRMcQ2H0IJD+LhiFlijdU5QxV?= =?us-ascii?Q?Z6Copm7/ZHLyKN936OmKTG5m0iRfD0DQ+Srzv0maot15XkaByMU1kvrTpGxo?= =?us-ascii?Q?yTgfHfJ1kggfimSC+HvBdtWUD6jNdXwDM/X+SIRz3fNLwZF2VRqO679HKbc5?= =?us-ascii?Q?uMc3g669BmVmfDC8P5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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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160114_092518_257948_DD2E03AA X-CRM114-Status: UNSURE ( 7.19 ) 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, heiko.carstens@de.ibm.com, agraf@suse.de, klimov.linux@gmail.com, ynorov@caviumnetworks.com, jan.dakinevich@gmail.com, Andrew Pinski <apinski@cavium.com>, schwidefsky@de.ibm.com, Nathan_Lynch@mentor.com, Philipp Tomsich <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>