Message ID | 1483961397-8599-8-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 E0D0B6071A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Jan 2017 11:32:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEF45284AD for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Jan 2017 11:32:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3132284B1; Mon, 9 Jan 2017 11:32:36 +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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5D444284AE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Jan 2017 11:32:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cQYBl-0003mt-PD; Mon, 09 Jan 2017 11:32:33 +0000 Received: from mail-by2nam03on0069.outbound.protection.outlook.com ([104.47.42.69] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQYBh-0003FQ-C4 for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2017 11:32:31 +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=xDnN7wZsQwk7ycotvPtUaMv9IPMz3yZsm2FCDIOnuzY=; b=LDezD0obIajLbipKtspujP9aN+6+fM4so5jM2mlCJI7zt0eUrkOwaAtpLAbnsh8J/GhWKMVEC97ecWYFTpdF8d8fGECuS6Q/UH/38JA34d6dKvNTrIMTaW4kECtuMmhXULFH3RpJPhoAtfzh+fKO38KMmnZo8eNInlGe4eGjaHk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (103.78.20.242) by SN1PR07MB2254.namprd07.prod.outlook.com (10.164.47.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Mon, 9 Jan 2017 11:32:06 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>, "linux-arch @ vger . kernel . org Arnd Bergmann" <arnd@arndb.de>, Catalin Marinas <catalin.marinas@arm.com> Subject: [PATCH 07/20] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Date: Mon, 9 Jan 2017 16:59:44 +0530 Message-ID: <1483961397-8599-8-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> References: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [103.78.20.242] X-ClientProxiedBy: VI1PR0901CA0046.eurprd09.prod.outlook.com (10.167.203.142) To SN1PR07MB2254.namprd07.prod.outlook.com (10.164.47.148) X-MS-Office365-Filtering-Correlation-Id: bafeaad9-d607-47f1-ef5f-08d4388324dd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:SN1PR07MB2254; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2254; 3:eJknk4qlkhlQbCLNr1MYE3cxaukd1K1QwsuDbFsne2a2ComsI4xtzXiUIepux+jMeOnP+VduI4j+OTB9XutAUcW8vF0/elV8qPXnXbby0XyOMc4Np/yMBYABZ0dUtVWGbTtrt+RfkpuNyt8qoy2+g8g/uwItv9VGGM7S6OgtEtZ6X8XJtPp54v584CDNvR4UryN2sGG9rHig5A7QZ0bnqZb+1SSOQ3A/Pz1zjSP5CEabVpNV7O2UAMF4Lh0hnwY3ixxW+KSQSmKD7C0+IxUJGw== X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2254; 25:O5zQqIrNeWlqmd5U8HTNunZWzVasfKWwGGn6kECzcMuCZpqMjN3tqFudwKUjizVxYrkJJ48qyB3S9yptOCDj6G0hfJyX/7FRysRHEHWusqS2y/0LXkp/IOVf+bGGVzythuxbn1bTFCkY+sqxveZcI/rMJvrnSHnCvO1e8v4YTCX3Sr/uJ/xNbCsnDaBad8PEOYKEmzoynnBfyrHuEnU7GprPsSSIq/8SHMhv6kIrk8aHHTQNeuETSjj3p0kYhSsDDBSAXOJiZADQGJIno5DFtbIFuxseMgDHRNJHq/m/o4o8RsUiI7Q52deqLK/icqKGuYyxOR91b7Dh0lJctajKWWMhMbCWFkgrSFdQMk7BKEhYmyyQv373mcpFoDQpq2jRASIjl7IDzHv2vEQNTQwFUVtLLGnISTnHqOFbdfvUG6HuxiweDFoP63rDVpVrUoAL4Mw4HsUl9vnwVl/weF8ajyy0Z6giqaiMwW1ipg1vGpyhWGuRz6h0I22uZIeg/9qRD2VnEbX8AqRYu3Ff2OOsYcIxDevO6fAkGvkSXOjKP5aGppcTkfTqxxidruDdX7dSBnCFOCBLVlfd8I5TIb8Gckh5t7HKaTHX0IpThH1nUHmbH2Nl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5R03H3ZbPn7nTcwqH32QSuXa6k/o2ZB0KRvpUMU= X-Microsoft-Antispam-PRVS: <SN1PR07MB22544333FB1B540EE15F8E36EE640@SN1PR07MB2254.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:SN1PR07MB2254; BCL:0; PCL:0; RULEID:; SRVR:SN1PR07MB2254; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2254; 4:VBBTeO3CEwfjLX7X4DLub2Dy6QoBSISs2Tw8tP5XMyAEyt4OE6W5XuxYdve1rok+VYZfvYnOgahdnimxm2pG0P51WxbF1X1IKZc4g9JZu6pr9Tguxv6KVit/A0gQD8pIuKxk1EDvRGR7XFVk0UfMctInNj2HFelSGPQdT8FkPslqwaB3mZEzJ6frOVXpbCHjNfe3BTksGQ/oVEG7yctEJkJ5PCXMSK5jpifpuY3uShTSSJmKPGsxr+P015rd5jgY0YZKZqHJmlg7kQa7V/I2k6xvSyKhyPBJC8ivX42qU+mSVtRIz4tFNgBuwxRXW6OV7exKzd6fDthCIkVyA79XfYdsT0BQcWbtfsuixbIOYmNuSUxlGGOjmWvdh/hJVI2fCn6Ox+57eqOmHpyVAFuVVNYvQVwMtpX+9zB4rrrHdqXAsK/cQN6E/tjz39hSyJmcj+1GedxfFS8vMyv0R4x6X3rW5W/VA2+Qx0dps1pRwZamCpY48rzYA95AzxS06DwLTxKQODb+ExZ5NExWQi1D1ULDAeJMM0n46/C2cxFz9WQ1ekChBy8wYO1SeYRZc+bA4GX5E3qRJ5L3+A/28qviFw== X-Forefront-PRVS: 0182DBBB05 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(189002)(199003)(50226002)(2201001)(101416001)(107886002)(5003940100001)(48376002)(54906002)(305945005)(68736007)(4001430100002)(92566002)(7736002)(189998001)(50466002)(33646002)(2906002)(66066001)(47776003)(8676002)(3846002)(105586002)(106356001)(81156014)(81166006)(6496003)(6486002)(6116002)(5001770100001)(39060400001)(38730400001)(97736004)(7416002)(25786008)(76506005)(50986999)(36756003)(76176999)(2950100002)(42186005)(5660300001)(4326007)(6666003)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB2254; 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; SN1PR07MB2254; 23:f/NsIAWa6FFEIdV6s8wwI6TvgXJZVDbPrxsOA7fPr?= =?us-ascii?Q?t+MOEcbP4+NrOFOOf3HBH3E77YdSEa6fIU/2x/BCFbmRdnKS3RaZCAyI0BUj?= =?us-ascii?Q?0tCENzt5fZ1M36072nPZbloAsoU4c3wiRPaaAzb7gE9ajtiSuk4mfjrT9Xnu?= =?us-ascii?Q?6ZZ4BE5Ixn/bzOM4+h1DR40YNsGG16jkQydb/b+CuwoUszG/pS1dpq9+ZABI?= =?us-ascii?Q?9QW8lFBYVcFPyGq5io4e2cbfzomEZfmtORwweCHuCqLJOR/0VvfF1ncCb9q8?= =?us-ascii?Q?BosWL17/w9CW2kYypu7ngrdqfVce1RVi0nOFsriWSrDBVYAs2UIADqdGkq1l?= =?us-ascii?Q?fFfhlJaig4xn+NmZJyr+cZ335jQHBFBwPfHGrMKD5T0Mk9+AL6jeb87l/y9c?= =?us-ascii?Q?9vn63BH8wgH8K15kxrinBgW4eE/y8pvLye/oc0Ftf8c35z1X5mYk2OGf/0Ud?= =?us-ascii?Q?20+DDlc6i2LDTLVv/MXv6T0UYBQL330KuatdIAv6l0xLoBd3pOvPi0tjbUDv?= =?us-ascii?Q?c/JCOfpRZxPaiCZGd+rCI5HUyqLs3TtAVWbdXFyYzmZ72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ginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2017 11:32:06.4928 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2254 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170109_033229_548943_2D07BAB8 X-CRM114-Status: UNSURE ( 6.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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: Andrew Pinski <Andrew.Pinski@caviumnetworks.com>, Heiko Carstens <heiko.carstens@de.ibm.com>, Chris Metcalf <cmetcalf@ezchip.com>, Yury Norov <ynorov@caviumnetworks.com>, philipp.tomsich@theobroma-systems.com, Joseph Myers <joseph@codesourcery.com>, zhouchengming1@huawei.com, Steve Ellcey <sellcey@caviumnetworks.com>, Prasun.Kapoor@caviumnetworks.com, Andreas Schwab <schwab@suse.de>, agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski <kilobyte@angband.pl>, manuel.montezelo@gmail.com, Chris Metcalf <cmetcalf@mellanox.com>, Andrew Pinski <pinskia@gmail.com>, linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian <bamvor.zhangjian@huawei.com>, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>, Florian Weimer <fweimer@redhat.com>, Nathan_Lynch@mentor.com, Andrew Pinski <apinski@cavium.com>, Ramana Radhakrishnan <ramana.gcc@googlemail.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..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>