Message ID | 1443564860-31208-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@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A07619F39B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:19:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D032B205EC for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:19:45 +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 EDBEA205C6 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:19:44 +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 1Zh3DW-0003OP-0T; Tue, 29 Sep 2015 22:17:46 +0000 Received: from mail-bl2on0075.outbound.protection.outlook.com ([65.55.169.75] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh3C4-0001Z9-B6 for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2015 22:16:17 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (91.78.158.8) by BY2PR07MB613.namprd07.prod.outlook.com (10.141.222.144) with Microsoft SMTP Server (TLS) id 15.1.274.16; Tue, 29 Sep 2015 22:16:07 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <catalin.marinas@arm.com>, <arnd@arndb.de>, <agraf@suse.de>, <bamvor.zhangjian@huawei.com> Subject: [PATCH v5 06/23] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Date: Wed, 30 Sep 2015 01:14:03 +0300 Message-ID: <1443564860-31208-7-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> References: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [91.78.158.8] X-ClientProxiedBy: DB5PR02CA0030.eurprd02.prod.outlook.com (25.161.237.40) To BY2PR07MB613.namprd07.prod.outlook.com (10.141.222.144) X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB613; 2:lkr+QU1urlm7lfxELLHr5V/TBP88qbXHTVVvELwfw7xwtqbR6tOBojMhjvJr0wjIxtU5cpw/GqM3eQ4UyBx+9CXd17wj685k6K4p1Bp2tiGk6akeJ2NJBT9yO0t53xuaXsuPk0Cz4L+iYh9ITBXouCQd4Ie9GBhXSed+9wqj17U=; 3:LygelIrfx+sTAT4TUy9OeLIRTXZ+ttHTit6oJSowytIOOC49kFE05BSDWDVR9Ga3xLIHjjCZGIG9Y2++8o0cN1y0a5Kh/oi8D4W+WA66DJMPq+QaoVpI0jdul9iM0hqGUYJzVFVzhO2wy/8GN2s6DQ==; 25:2SYD85h7j1B2FthJgrx/WsBdV9A9nYorzG5F6VOw2AHfy+8Dz2F9LBKu0OS+aqoWyIui+vnzzIxKK4f6uslv/xmKPnO/+LHBlXdq5y+zCEJXpZ6iLKC57Bv334xO8IrMAKjhLvi+lme8hYcc0NMF4tgb9BCUvRF6PTXaV6UTnvBKqjiNoq+/syGpMLsKJlk3SsTD3wtnC8p2qFV7GK4s9TdLhxifv/rwV5qm2U6jofUiVPVIh+KAVD/YIxBovbyGhN5gjpOha2/CXjL97Ek4lg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB613; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB613; 20:r1Xxe6DwprVk8o/nHichMVXsAtpp2sMX2QCH7EHgVnNaZy9F43a7w6JsM8/uz2yk5RHC/Op9SeR+xA8/WjgeiwRMCqvu4dzq6yKGcoKdy+xC6mF2AqQ+cio1DB4zzG5P+FfvzM5hDR7WnjFnQUcwZiwZVa01RZO6d0TV1FCba4X/KXcfz0bgQtYHw3anw73f4+QtF499ZbV/ose8BFRLlSQmLqDuw93qk/4IbdGilgMBjT2fG3ZxBTpD7KpT48tCpqlxYQ+ZoOEgNzi/nSFlKpTZj1jw5yfmJBFvSROJa7Kg5ouJBrTp9ClMMtTCYjj3Dlxg524gYQuhlDS6OS/jQ1ACqW+MK+RyDVtL0L2KXW8PjaSv8dzt/0ZB0kOfUqnFQ3QxyZixmypXQtWF6oCmK1i5vIzrkP+B4mEYTV0o/7YCdi2xi43DhSi1GBaCCgkV7JqHds1IJEhduj7n8P9jzpcZq6WERJ15AatybDehFC4hOLoNUu2ND7y0qkObXUssb4+jP3fzAdylT+R3x5XXW4z2cjJtVMADclW3gX7HN37qeC2Nuh8bElZpvt5yMiyUocu7HTrCPSnXRtpFk1kUVozGctJHxp4CNgVhgjAbH0k= X-Microsoft-Antispam-PRVS: <BY2PR07MB61368E5FC81B0387960C3ADEE4E0@BY2PR07MB613.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001); SRVR:BY2PR07MB613; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB613; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB613; 4:ZBWK2sznPzsdAxDdlsY7mITV5uxEI+8ClC6DjPiEDAKFwOWlmtsVGAL1SAdrpr6f2ZvjcQtAvuTok0sLHbg1PgMxU8w1OB9M8HoJHBZ87r7DOlYpGPHqTW+ZmDOudcxlwGuUy9lHZqtNi4+ma05vT30wuiB6QqIDpRq4UzFBeGblPr38wA4KazjopBDPkcN4sQTzhNlQBvhYnbRuGBJw97qtizaszreK2nuFB4fnY5smFsbxZqn7I6N3VwhaqhULk2ua7i0oswIHkAjb93WXUX65RXk9v2fbYy7lr90MJ4/u9V40JEt9EsOSkPClvRSVtvTFqs2HoEkGoZgEJq0qgygTvql451l2xJpz724OaFY= X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(189002)(199003)(76176999)(5001960100002)(5001770100001)(66066001)(64706001)(46102003)(47776003)(5001830100001)(5001860100001)(92566002)(107886002)(50986999)(36756003)(97736004)(81156007)(87976001)(4001540100001)(76506005)(42186005)(68736005)(189998001)(77096005)(2950100001)(48376002)(50226001)(5007970100001)(40100003)(101416001)(5004730100002)(62966003)(5003940100001)(2201001)(19580395003)(77156002)(106356001)(105586002)(229853001)(33646002)(122386002)(19580405001)(5008740100001)(50466002)(2101003)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB613; 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; BY2PR07MB613; 23:MpKlqoK/SxRarsM0lJuKLbWiOvRPuRsdpFnHEibD5K?= =?us-ascii?Q?8zrhlkMTq9VjiU7rQWmixvK8hzLvnN2t2fbknz/UhJHTxafIToE0eW5VU5S3?= =?us-ascii?Q?2yhkKcPESNwV4JRY9UjbFhvQhJC5Ft0B7ImQRv6QShlUc9XxXU6eyuif/n4K?= =?us-ascii?Q?el6JmC3h9SAnHEX3AhKfz3aJel7UQEC7Mz+p1mAzQEhWoFfVlzhMR9jzbu+B?= =?us-ascii?Q?4zekLxv1+A7C7XjL6LBWvw0v+T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rjAVnWYA+B9PG3hKgcQmlS2cTWddeuze07ylvHS02rgUd6CM2zI7T8zuWgbJ?= =?us-ascii?Q?3haucIpYrRcQARqPZupsdTJhU/ub9G3pn2Vd+xq5UxaqoOUsVXuRB0k+3oqY?= =?us-ascii?Q?1L3w+tAykVEPTMnfexue1gyrk63Ejir54yBVdHzueN1jGnwkjUsKAuTOX1BP?= =?us-ascii?Q?ajdw6aF7uqD7ld/ATr7yo=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB613; 5:rqYt49yrtYMLvXYK/Eb+1g1BCR1nijl+HuzI+wVJAtOJFWvoaJpqTpblPVTqYw40qG237E9r0m0xPnjFBo+wB3/iryvahSgLy+GYGBu7RJUQctQSgBvJbQGaubGuTshKDA1n8mIPa2kg/uExjM95yw==; 24:ScdHTNcEzl3eedmlOiaqp0lNDRg20kHJhhqLFNBD1yHVh8t814QcOpyKS4SjF8meFLVUP65Uwirl9z2Tty9hcmcVFOdMLKSd5AfF8fdDXbA=; 20:O/tdJvorJrJMmQaaFGZ9qWs5sar/RrVAv6v7e+yVcasABa6lPC7CzpDDIXJBD6Vp+PiZxqc79B0OIby3A530eg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2015 22:16:07.2659 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB613 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150929_151616_606852_B8769EA7 X-CRM114-Status: UNSURE ( 5.59 ) 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: yury.norov@gmail.com, klimov.linux@gmail.com, Yury Norov <ynorov@caviumnetworks.com>, apinski@cavium.com, philipp.tomsich@theobroma-systems.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, T_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>