Message ID | 1464048292-30136-12-git-send-email-ynorov@caviumnetworks.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp350485qge; Mon, 23 May 2016 17:06:11 -0700 (PDT) X-Received: by 10.98.20.197 with SMTP id 188mr2272525pfu.144.1464048371306; Mon, 23 May 2016 17:06:11 -0700 (PDT) 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 ab11si288218pac.38.2016.05.23.17.06.11; Mon, 23 May 2016 17:06:11 -0700 (PDT) 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; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.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 S1753430AbcEXAF6 (ORCPT <rfc822;julien.grall@linaro.org> + 30 others); Mon, 23 May 2016 20:05:58 -0400 Received: from mail-bl2on0070.outbound.protection.outlook.com ([65.55.169.70]:43488 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753093AbcEXAFz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 May 2016 20:05:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CDuBvEcof/ZkIKZXnuNpspNzryq2h7Lsx02iWrorw3E=; b=dHIe3eImAEANHiksey5utwTc1CeDhTliS99wHZbVjuXSDUJWdr0yFMrRsWJm+jnyAamEIxu0qF3ToJHSzetCZEa1J+LDfpKYymeu4oB1t6bCDTBl4pJApDpA24kCu43rxJFawHjhVsumfkMoD/U5lKiajaYOnWucAWw5wdGaRik= Authentication-Results: arndb.de; dkim=none (message not signed) header.d=none;arndb.de; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (50.233.148.158) by CY1PR07MB2230.namprd07.prod.outlook.com (10.164.112.144) with Microsoft SMTP Server (TLS) id 15.1.497.12; Tue, 24 May 2016 00:05:46 +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>, <linux-s390@vger.kernel.org>, <libc-alpha@sourceware.org> CC: <schwidefsky@de.ibm.com>, <heiko.carstens@de.ibm.com>, <ynorov@caviumnetworks.com>, <pinskia@gmail.com>, <broonie@kernel.org>, <joseph@codesourcery.com>, <christoph.muellner@theobroma-systems.com>, <bamvor.zhangjian@huawei.com>, <szabolcs.nagy@arm.com>, <klimov.linux@gmail.com>, <Nathan_Lynch@mentor.com>, <agraf@suse.de>, <Prasun.Kapoor@caviumnetworks.com>, <kilobyte@angband.pl>, <geert@linux-m68k.org>, <philipp.tomsich@theobroma-systems.com>, Andrew Pinski <apinski@cavium.com> Subject: [PATCH 11/23] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Date: Tue, 24 May 2016 03:04:40 +0300 Message-ID: <1464048292-30136-12-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1464048292-30136-1-git-send-email-ynorov@caviumnetworks.com> References: <1464048292-30136-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.158] X-ClientProxiedBy: SN1PR11CA0022.namprd11.prod.outlook.com (10.164.10.32) To CY1PR07MB2230.namprd07.prod.outlook.com (10.164.112.144) X-MS-Office365-Filtering-Correlation-Id: 02cd9f1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h0lM0eHkVOVBu3zvcMb9rtkD5MjNtkW0b+nqY2UlDhw2LdLosTAOQmMpqOr/qG2ghy5hh/QL47jumGWeUgzSP85JpCiD+hqXYzFGCNWkpC2fgN4t0IgTsiimri7TE/Js67Z/cEl6S+/MR2LvRw2EV5K7D1zndoksXEH8bpMNe0oFI4IBI9nZIZk90/aSBfJEe0zwZgF0VIYxtYd/iGyMGohQlsdzc4dk3n/TeO2jy3Q0oJJGODFJ7IfWbeikG3iMgwSj+23vX7pJomqjR5n/zW8/8HE1h8EzJQFUe8XIQRP/NofHcrplCGyVtyaG0qKA6hxASIscMYIpeTqjqF6/FndElUraPgUpBFbzMVgIdxIZhB6gzjOoPA/Uhyq+bIKXY4sx7RqAosPwsKaVtPU+AM3aE92CML8FEPZbfxWYFMxVmAulIbNs/5STeairbtMZAdox3g3nF/Lbw= X-Microsoft-Antispam-PRVS: <CY1PR07MB22305894512EBD47A2E0196EEE4F0@CY1PR07MB2230.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:CY1PR07MB2230; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2230; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2230; 4:D1s+msOHL+TPpryjpZikapIXyoCOdNh4hxNcRZG1ad4vXFowwY2YjiOQEYlQpzeQm6ctD0bitr6t4Mqv3LkNVWxhSqP7mwHF8wIfT2M52LH79opvJKoQfte4ssb3CTPooNW79hTbKtWs88RMGFVp+zwDSnjGapJKTGkLwXoLbPKubplljTzoc2jXG4xcFFm7cjY2n51f2XkpG1xPRyc8dZUOMwlNIZicPgZZQ/3O4U6Na3lePE8+wkSnXCS1TZlvmgCM53DKAX0jTdjfVXrk9peqlOn6cqzNRgBBfKJoqL0FRpWCJXFOJFv9ZAm5G1SEcCyjAAC0zgR6X+e8q2UPpxcNepE7anQcPe8VyO9xTl7in4CkQoa5LJmCH4jvSAAo X-Forefront-PRVS: 09525C61DB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(19580395003)(36756003)(5004730100002)(19580405001)(5008740100001)(2906002)(229853001)(2201001)(4001430100002)(586003)(47776003)(33646002)(4326007)(66066001)(6116002)(76506005)(42186005)(92566002)(77096005)(2950100001)(189998001)(107886002)(5001770100001)(81166006)(5003940100001)(76176999)(50986999)(50226002)(50466002)(48376002)(8676002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2230; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2230; 23:KSXKhwrQntXh9/TBQBlqq8SbyK2yjqopYJGSJUNj+0fufv26d//IbqavC2oEBdR9ug2gCNde+hO8W4ehAfYzqZ5sqVX9IVU8N+x1r41sG6oaGzG+ngveiPpfi2J0h4cg0bT95IPwENNSclYKT+g9kMZ+AblYSR6DOdlEDjrqMrRmF1fC/gj/pCiTfyX2pm9MebZ0iic1qNcSR/ahR9MvB/JaLUst2gQxJ164OvkglNObuQvA2DXGKGz6jstiXl7HOJIKq0h0dzaQLTxXq/pHEN+iSv/sxduvrFgcEip9CrYlzDF9p6lMb3nhJ8wrBc0Y16f6mxC2idv9KiRr5FAAZWe+W8gNkm/eUNzAgn8vbp7NDQiLzrzpCKCX6gmKligVK3Y49EkX/OxB82S6u2p9CwNcXEg0IX8tIKnP+aBwIjt6wdVnkUMvONnAxGKsvMwmlSJ0Uum0/Sm/akL7kK8MC8a6buosj6tQooiiw0AgkD27mPrP3uobdMTKjuUo0VjO6r7Jesn3ixXBxqscjWvb2vvdhh1NPn4ZZPFEnmTVySmIDZlYUuPHM7ovZXfSCjcRsXM+sr9nFLZ0qpQ9pJjhnoNwwweEv/cGu34ER0Me0aBXSSEHZXO0zd/TLMnprM8J/SNG3Z3yrXN7qc7AOP6eJnz6TztGnWSB5KGCQn+XtoTua4uCrwpOZkbEKAycJx5+o203C8/mZgKK3UyOerG7nN1UNMS4ySnXHoFiUWWWyeKqb/TLkqmzeycSjndG49rw4YHWZAqW/NY4rpLCQqwnr3ypHQangmadsFJwrQcm7A/PG+Wcg8Hx9I8dK3l5NxWZucPVt8izQDpdDVbmqPaRRImqYvfo0WnA17tashgiQUIGjGffDI3+A/MRQP2HOWHNGLN4I06k5Ip/ACIv+myAgaX12eDZmjdoVfZNtDzbk85AQ+wGuXpakLMSJMscTm+j X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2230; 5:AnVPSC50ZnvPD8A3HyU1uQkm12ic0Mxd2TycmxwOGAIY3o8HMRyuVkdi9GPk4FA+Qhm4A6RU+RXb+cqZLaygNwTss46DNQ+gv85XHkgmRVdIPur0Nr2SBDU4isX0iYfpgnQWtHRRw4XGGIMvUcWgog==; 24:oQl7IeO7A7vuSy0AaHl9OYCVU7+y++4dTBjto8iKTrkuwwwSwhCpOdAnC4me2hiEpdxTIeqfUQeKc4kURaAzrJLDi/p1p7FTzoJKCTjRiqg=; 7:pvZeBwQ0KyGienju4nhf1ONQ3C1J45HSbC4nFQrRF5I7qPbSTP6m5SuftUHwJks5ieuItJ+E7lXIV/850/abe1MZdxEZBfmw5xw11YlkhTE9EYj7Z2xhqYSW3WaJL+DKK9KFo94fJZvsSIpkAQR0gBCf0Ky8KooNV6d2m0vpsruAXDk/t64m3CpEU0YeE00M SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2016 00:05:46.0884 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2230 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>