Message ID | 1477081997-4770-6-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> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8014560231 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 21 Oct 2016 20:37:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F87229F03 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 21 Oct 2016 20:37:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6221129F28; Fri, 21 Oct 2016 20:37:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id C0C1029F03 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 21 Oct 2016 20:37:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxgY6-0004kR-3g; Fri, 21 Oct 2016 20:36:18 +0000 Received: from mail-bn3nam01on0045.outbound.protection.outlook.com ([104.47.33.45] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxgWb-0002IM-6j for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2016 20:34:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4sBTrGp+BCLsGS+kxs2CwEhE0Oq1ML+cAl19/JAweuE=; b=Q9JVNcPk0giDIssDrQA75wFssB9ctS3XTk3W683CG2JT5j7aYQDkMV2MmXu4u04aS2KN4tBNppnTI3a97nhj3QAtOb4lFKLLW+FL28vuzKaVmBsOqreRKa+mpjlZuYm18byzis+qkNnXpJ0WrZzmn5zLTVxwcIl4juF6HKk88QQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.121) by DM3PR07MB2250.namprd07.prod.outlook.com (10.164.33.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Fri, 21 Oct 2016 20:34:22 +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>, <linux-doc@vger.kernel.org>, <linux-arch@vger.kernel.org> Subject: [PATCH 05/18] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Date: Fri, 21 Oct 2016 23:33:04 +0300 Message-ID: <1477081997-4770-6-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477081997-4770-1-git-send-email-ynorov@caviumnetworks.com> References: <1477081997-4770-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM4PR02CA0012.eurprd02.prod.outlook.com (10.165.239.150) To DM3PR07MB2250.namprd07.prod.outlook.com (10.164.33.148) X-MS-Office365-Filtering-Correlation-Id: d0915ae8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tK3Ge/bYK3ktB/oAQ/fwhLmtNRnlRsbJfl+/a3RPQf9hLof/YzLuQv/u+4wjz7IpaWGyKGvCxnIecxLYL4WUU41g/SX6G6I1+hUZzHTNDw1iqDHjldZX73BR+nawdCnOe7XaWhJewuaEU+ZRk2FPkGJxVRC/8nceTBgatp0KV6dwrFO7wCz25Ka9mfDLo+Q==; 20:W6TaGjx8aDVXr/VZw7PcqOjyQeRg82Gz9IP22wveycQkGxVPKwmhsrRB9+maVrq0uOrhXIY2cyGJxrgwUHP/PxtbttQrznG+vDceFcL+Pz2P+PiuxLO83DtH3P93E11IJ0WAhV5S9tAZM+9QIqgOWNJdM4PJbhmijcH+AylfEBuMNZqTStmErghJT8jK5MCkL93SsIzNAu6fjzDbqiU4IauI20Kqqyv58RXIahic2J7Mw0G7wygK8YW7MAPr+CmXQx+73AS2ENn6GB8sw2lxHLlRXQGKJup+71pK15cfVdNNqsPKyT6PG1hbugZTMe+U6k+kgZniwagmZ1mn1l6PZgXJgYXMMPXzi3RTzpobRY6eA+SWQvif7aIvBBRwZ5lvZKJJ2jbBCflKdChx3FTNhJodVC4MWNonbq7TAHHBzbpEODHPR8Cmz1r0hUaT6Gzk1YDnYvxH3e0YbVw+DAABvvVW06c6TbWYN07vkZa8QZMCGDtJHLI0Q/ZVe4/JKqCRAxqnkdbdCJB7fFbLAADJ/fYH+cCCXNRKtcQEl4dgGR2ELbXgcbhiwUR6xtJhLDUR5zY95ueIud+eDfXmSvbTSantOSUvHg4xnt+UwILGwwc= X-Microsoft-Antispam-PRVS: <DM3PR07MB225087AC08A124714B436AE2EED40@DM3PR07MB2250.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:DM3PR07MB2250; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2250; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2250; 4:HpW58RAD8lrZlpvbI16i7EKduRNui78cOzUcvCYl2e2ZB2OpioRZe5gz/J5nUwvN90y9WcF1QDVBJuz0bdWjuVGUWb+JpSvdsuXL8uiy8yQyx3bOzJE179p6iWWhrz5/oNRkoahrXeIUCjYCnev5MdqkyWjhrhJsV+TI+vlYQF5CF5CZdZhsNOT6JONYxMrgU3IhWdUiBBcyNCIB334PaFRDVxChO/bmEwsNo5hlDJ4GYl/DLnLn8F1kUGNdlw5sgNDjS82LAWqGeC2vbtX2ItQXNzS/0E1BNUjSmIQAFwV0d4mawyoVWYeWgWde+m8U/CyNtULUwiE9l0x7EZOOWBTODhRIu+9pf4s+AdECyckb+8yGPDtRbfYdSuYOXoxRdRBwCYzrNiLLUoFKThIeww== X-Forefront-PRVS: 01026E1310 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(76176999)(50986999)(4001430100002)(7416002)(8676002)(81166006)(81156014)(586003)(5001770100001)(97736004)(77096005)(68736007)(33646002)(36756003)(76506005)(42186005)(105586002)(2906002)(4326007)(106356001)(3846002)(6116002)(229853001)(5660300001)(50466002)(107886002)(48376002)(5003940100001)(7846002)(305945005)(50226002)(7736002)(101416001)(66066001)(19580395003)(19580405001)(2950100002)(47776003)(92566002)(6666003)(189998001)(2201001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2250; 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; DM3PR07MB2250; 23:NDKb0nICQOcMMOR/zKPLQUcGjGPYSkLl2tGfJFOM8?= =?us-ascii?Q?T+nbT5u53OFBzl5RcIyAEczD1WVbY0iabe94YSHZ1dNAE3VqM22/MFUBVIPM?= =?us-ascii?Q?Tsnf/MvlliFKX6+HC+84gYcw40tHvyMEMhYY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qPREMbe0jrPsaQqxYcCsJPj3YVFKtp467oPj8q8FnaCxdC1n28+LTmK+U+NWrdQ3S5xJqc2yBnD6jJXqtCHn8vbHwgBhkQA9FWvFMtxEMybZjFkNdW2GMehFe4kVdrdweZwrs7S86AUrdPc3DgKOkv/t3J5V77u+9hZdQHDN9Jh4Dp4ljlnQc+oYW1kxaQcmUu+d2p/GEfrHEKemhIHBCXvN2NpCctQTzpw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2016 20:34:22.9642 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2250 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161021_133445_871593_1AFEC178 X-CRM114-Status: UNSURE ( 6.95 ) X-CRM114-Notice: Please train this message. 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: szabolcs.nagy@arm.com, heiko.carstens@de.ibm.com, cmetcalf@ezchip.com, ynorov@caviumnetworks.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, zhouchengming1@huawei.com, Prasun.Kapoor@caviumnetworks.com, agraf@suse.de, geert@linux-m68k.org, kilobyte@angband.pl, manuel.montezelo@gmail.com, pinskia@gmail.com, linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, bamvor.zhangjian@huawei.com, maxim.kuvyrkov@linaro.org, Nathan_Lynch@mentor.com, Andrew Pinski <apinski@cavium.com>, schwidefsky@de.ibm.com, davem@davemloft.net, 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-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..ab61d68 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>