Message ID | 1466207668-10549-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> 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 28E02601C0 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 17 Jun 2016 23:57:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14052208C2 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 17 Jun 2016 23:57:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 085A1280B0; Fri, 17 Jun 2016 23:57:24 +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 84B3C208C2 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 17 Jun 2016 23:57:23 +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 1bE3cG-00021S-CN; Fri, 17 Jun 2016 23:56:00 +0000 Received: from mail-eopbgr700054.outbound.protection.outlook.com ([40.107.70.54] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bE3bf-0000KB-82 for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2016 23:55:24 +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=hSkKGNT88r1nHk8MCeAUTYan7fQlJRW7XWQTmT4Mx7X3aUGr53FTed40FYXlt4knuCzyF4DBOeweb8opr4NqUXUtKNzzl7J1LK+MjDjuOL81xX7W6Rshh7D37aOwDCi+gUHzmrP0JxYjzgW+Xs4EeuGxrTsR9D5fJ3p4quJusjQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (50.233.148.158) by CY1PR07MB2246.namprd07.prod.outlook.com (10.164.112.148) with Microsoft SMTP Server (TLS) id 15.1.517.8; Fri, 17 Jun 2016 23:55:01 +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>, <libc-alpha@sourceware.org> Subject: [PATCH 06/19] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Date: Sat, 18 Jun 2016 02:54:15 +0300 Message-ID: <1466207668-10549-7-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466207668-10549-1-git-send-email-ynorov@caviumnetworks.com> References: <1466207668-10549-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [50.233.148.158] X-ClientProxiedBy: BY2PR07CA0033.namprd07.prod.outlook.com (10.166.107.28) To CY1PR07MB2246.namprd07.prod.outlook.com (10.164.112.148) X-MS-Office365-Filtering-Correlation-Id: 279e49ef-bd46-4d49-4129-08d3970acbd6 X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2246; 2:Lw5ccfVS7bRK36LVdgQbyMatHSD4RgB1iuTo2MAJCj5IlgaMNHWej8gzU11tpeNf23A1K6RHKx18y2IQBnd/a9AuRj0GKGPGaYu4r9oaN+3aBttAhkzTbwuAsyWzj053RbGD9p1kiKhOFwc97iXKl2RWHkfn4vlUG1KyvqHPP7ZnqpEo6eS1yPIq0vwSB1fI; 3:4eSkF3CTY44Zn07v3vGA/yce3SLCkFjFSU6xchQ1j0YaBP8LgRBjnCunoXE5XyN1oE10QOFF67n1Po6RdKUIlad/+HweN0VolJQ93MTk7PuCdfJW95hjz9RRc2kEWInq; 25:fZXv3rgT5cQo46ZGEPtr2NNta7qV6oJqMR2gWKIGt+InU4zpVsnsJA40bZ9G3umRBzGuZDSosxeTPWhXnki7RqcL92c0ymFnASkBmi4GxEQ+NwvewgsNPWKF72FZc79Up4QteC6Iugda7203agZb4KE25e7rZ/7mFIsIxpC1cQr2M/6oUzHPaLTFgRtKImUCKorCNk18sqG4sKwFC28ZBTr0peyEBhxKVsg0N++J9pJ8789S0keAZGy4KwxlecTbdVNnbPSOzUXdM9GdmeWQlt0ApEyI6LUulyyBEVRSp1puXW7rtAA8UAe9MkXsTYg2779bHBhI8GSiN/7f8DOBdgle0CkMhATItM8ztUdbOd8U4UstxmqpOSKyvx5cC5LH9NvPSyl9KddLuL3uC6A5aQJZ+f1BAjMegbUziJWsQO4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2246; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2246; 20:XAT0OeQX75LukEDDhjxktfL2aMVh+gG3mzfs/5XgSSP4gFawVubzc24BMd0bc5/p2quzWVEqFudqQc7Clo0OF6xrKfM0QJ441ZBEKGgtx34mX+o6/MklKVl6W9cQflhIm6kwGjMZOSRG4cOva/WMrK+wmZZNj61VaZMp1qt5fa98bpIZnHg8Jp6hkfC1dW7adXNqfMC4KJCkoQrNVfv4rcBlKjllxuVimLr/YaIMiHUeKtKvdt9X5r8OZijK+1UQmGvMUG71SG5OllF9vLBnEpSM1ZQhuOFSrH6XMViC82bVCAAafeedjtP20uZHNO/pmzl3gvFszOebJiOhGt7Q1mOA3wkgwW4KbSIU/snlqZwNDNE+jrYxfk50irfX6KTUAYJg8UwIE1PRpw6JdYowGAa+B+Uf78fwrrZW9xvGkTJKTCp6tiue4685tLi5UdfBG+59OPTS8x/pxyTKfLyMZUwjWCX6r3WZb7B6Q8wBKdwIMBut+ffS1cnfVRWOCg3hlFjVkhZWG+vfdqRTZ73u3K99nPpfQSJLJ9AW2/+cxeVd9rNnig6ef2/kaYOYqFwP5ZBNMf2Bu5d3roGz2BjhwUWtvg9r1dcAAHeRA2CGN0I= X-Microsoft-Antispam-PRVS: <CY1PR07MB22466DF90BF63D3ECDDCFC43EE570@CY1PR07MB2246.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:CY1PR07MB2246; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2246; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2246; 4:NKHocvSq18OA/tYa4RH0DoZhCbYTqUnOD6XM/ZJJgHvz1oKxp75vC+U7t3GQRq4zLKFGRbQ+H2h7pJZjZJ0sk96QGSS1djEaH8VpE/0/H5CyS8J48u7HmyjODJUR+y5sfDRqpKgDsFVuMUGk+bn0se9mzEmA97cNx/CZ3483OOmnMk4XBtedvFEaBKRCV9Ec61WpnI2k+pNgyM3D39LbQAXUN/v0JLPqLejhqxZrCOnGpEYoaAiZ1SJKAbWp+UwvkkFColEariZSe+aBHwUybrXGlfnaFuwZFk2trRRX7V/d4T9OqlfWpdsEGK9J6urLBFPUlnOiz1bp8lk6CqlZUw6Hke0j2vpChDt25YTbdd9UyzwG6g/rl77/YtUy1En0 X-Forefront-PRVS: 09760A0505 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(92566002)(2950100001)(33646002)(50466002)(8676002)(81166006)(81156014)(48376002)(77096005)(106356001)(105586002)(5003940100001)(101416001)(5004730100002)(229853001)(66066001)(47776003)(2201001)(36756003)(42186005)(76176999)(50986999)(76506005)(97736004)(5001770100001)(50226002)(586003)(107886002)(3846002)(4326007)(189998001)(6116002)(68736007)(2906002)(7846002)(19580405001)(19580395003)(4001430100002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2246; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; CAT:NONE; LANG:en; CAT:NONE; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2246; 23:+1PEGoXziJgofJ8qKYNcH0onSRnP1pWGqFIGJueiO?= =?us-ascii?Q?lrQcGq/Uf5R7Q9H2pnqh4LJ/4auRRafAr24X2GwDk0IF2JqOeXYgfjnN92rb?= =?us-ascii?Q?aHjympn5KrOdAxSckaE41Axfw9oYGVjaIL4pX2muKOjujkXzXJ8qVC4FshHy?= =?us-ascii?Q?j7cgfi2YK2jwMtWTVLiBigpZVtW8c0qJrY+C87tBD6UnlySUqQQVLPEqg03v?= =?us-ascii?Q?VQCaDFi1UQq6txpig6TvUNEwmudBQxmcpOriC8cP4/NNr0/qAqo7NiXG0FjE?= =?us-ascii?Q?xFDMbVfrCqR+toAklwMCiGmoodYu+sFGQElyHKciaGPPk5LmjXTSrLIPdt0R?= =?us-ascii?Q?EPXfzSVChdxmVBzmYmNl/+eMI9g/ZShxs5YH15W8Ka6kPNiq657V8QzXtlSY?= =?us-ascii?Q?fzvC53BFbqo5/oyXdtF+taG1o6m5vYIwbHrjdXKyrDuL2xH/rsNJNikPlF6K?= =?us-ascii?Q?YpBCHtI0yES4Wz1IVLAnqEQyXiHtspO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rumeXkl91q3FpLAFdHRkqc2EfQEXuXz2yY1SIBmmHOohlUsnEsYt/FpM/+hMxXoxmYQjGbOKfkIy/Mt1eL1lEAkuCna6kiCQE=; 5:y+9UXq2IC3c9NIzFKKPbbDGFyoxTzo/6MNIcOLCcDLM4AIkBKvia9cFap698s6u8roDbIUlgQZpVLbW+stHZYm/cDeq878q+YapSgM7mTJdnS9hlrSWUbS+PXwaDdG3GyGZi7srSkHY3tuckIjE55A==; 24:QJGa0J1UjhPg4PbBRoS/7KgMrNsuZRo3H8OC7KVXOphHLyqE1WGtc+E0dnRJZHgFpxeVLKDWvefIihMyeWlF+GeUV8S4W9Cohq8gYmtpv68=; 7:WFDmrfmyxhcRhFSN1gZsosP3OZZ+5/8hE4qvYxVb64xVAooVpO0pWCFgGnGTVIhsu4BBKTOFt2fhDbMo3RTHgG+tgCTo8BF6aBXeun3Md9gZ8FhKBha07QF1JYQKouNxxvgaBugJYKuHOKJZUN1Ocz4QneYuhJutE0J5TDX2/YvDwPXYrxiItwGcKy7oSBSnB6O8wC1AwR3UdmFaT4elXw== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2016 23:55:01.3464 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2246 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160617_165523_470839_B6D90391 X-CRM114-Status: UNSURE ( 6.38 ) 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: kilobyte@angband.pl, manuel.montezelo@gmail.com, pinskia@gmail.com, szabolcs.nagy@arm.com, Nathan_Lynch@mentor.com, heiko.carstens@de.ibm.com, agraf@suse.de, geert@linux-m68k.org, Prasun.Kapoor@caviumnetworks.com, klimov.linux@gmail.com, broonie@kernel.org, ynorov@caviumnetworks.com, Andrew Pinski <apinski@cavium.com>, maxim.kuvyrkov@linaro.org, schwidefsky@de.ibm.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, linyongting@huawei.com, davem@davemloft.net, 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-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>