Message ID | 1443564860-31208-7-git-send-email-ynorov@caviumnetworks.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCHN3LUNYYJBBSU3VSYAKGQE3KJA7LI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 1FAF022B1E for <linaro@patches.linaro.org>; Tue, 29 Sep 2015 22:16:43 +0000 (UTC) Received: by wicuu12 with SMTP id uu12sf12757637wic.2 for <linaro@patches.linaro.org>; Tue, 29 Sep 2015 15:16:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :spamdiagnosticoutput:spamdiagnosticmetadata:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=6oU0lVvoWgpX2cNt4HCLY+fy9gQJL4gFsn06pJK+J2M=; b=VUjj6sbYXEH/S0fKTzRos+gILobQoApyP/pkgGsNjIjcqi2oTpRV25i+ZS25ycsniE Cec0e1IX0zbrsCVS5i4wbryhqrykM6TpoGqq5fRD0063v8B2BK+8cZcM5kzfHd3srEae SsUFldfAIQiR6HBQkvkZmVFESmqfdpRmulOlQ8jploGGR3jNmhrYLNyzl4lfcb5VXRCo EMYqJxbZ69mIKvcCKcKhWCc2+8UDkSk2sB04prSB7tmMIkOwzdQ7f64aMYjrfLl5QyYv moZaRIAbII2pt0DUN55NYe2hKn87dDQvURWzl5DZFW2zh6llXkT+jI0mGkB3m3xubrpb 84DQ== X-Gm-Message-State: ALoCoQkAxS4h10iWTdnKfRWzNlcZj1JcKfQk3spki16OjCcxGbKWEvDfXyuh3H3aRe+jJXA382Z+ X-Received: by 10.195.18.100 with SMTP id gl4mr45069wjd.4.1443565002446; Tue, 29 Sep 2015 15:16:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.15.40 with SMTP id e40ls6616lfi.14.gmail; Tue, 29 Sep 2015 15:16:42 -0700 (PDT) X-Received: by 10.152.21.99 with SMTP id u3mr88642lae.123.1443565002295; Tue, 29 Sep 2015 15:16:42 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id qc10si11952345lbb.17.2015.09.29.15.16.42 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2015 15:16:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laclj5 with SMTP id lj5so25375911lac.3 for <patchwork-forward@linaro.org>; Tue, 29 Sep 2015 15:16:42 -0700 (PDT) X-Received: by 10.112.199.137 with SMTP id jk9mr108730lbc.86.1443565002151; Tue, 29 Sep 2015 15:16:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2397176lbq; Tue, 29 Sep 2015 15:16:41 -0700 (PDT) X-Received: by 10.66.121.110 with SMTP id lj14mr423999pab.61.1443565001076; Tue, 29 Sep 2015 15:16:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cs1si25245169pbb.133.2015.09.29.15.16.40; Tue, 29 Sep 2015 15:16:41 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756703AbbI2WQf (ORCPT <rfc822;pingbo.wen@linaro.org> + 30 others); Tue, 29 Sep 2015 18:16:35 -0400 Received: from mail-bl2on0100.outbound.protection.outlook.com ([65.55.169.100]:37475 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756344AbbI2WQK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 29 Sep 2015 18:16:10 -0400 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> CC: <yury.norov@gmail.com>, <philipp.tomsich@theobroma-systems.com>, <apinski@cavium.com>, <christoph.muellner@theobroma-systems.com>, <klimov.linux@gmail.com>, Yury Norov <ynorov@caviumnetworks.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 Content-Type: text/plain 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+9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3x5XXW4z2cjJtVMADclW3gX7HN37qeC2Nuh8bElZpvt5yMiyUocu7HTrCPSnXRtpFk1kUVozGctJHxp4CNgVhgjAbH0k= 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+TnIlyQRWMI0LIebts55LFjhq2tjq8VzPG81?= =?us-ascii?Q?wOLs3SbAI+F1HGy6im7DKnhWnltJ+pCnSlQglI1lODpqRqeHK3DZ5NdDtk2u?= =?us-ascii?Q?8c4vOrvZIpxVAN0GSyDTV8nHKYfBkFc0DRamTvXDv6+jl7boVrKSxzhwn1Lz?= =?us-ascii?Q?p+2cfaWJuTw+B9N59x3OoFHuBT89R+hruE8wsmDw8cFxEgg1LuJx3Eblm7ZP?= =?us-ascii?Q?1T7cy0E+Ug90K5jzpEcckyLvkXRLi/nYRpOwgj7V28OYuoKsyaU+G2J43yB6?= =?us-ascii?Q?I+eUX6yTCdMnoSzGm5rIn2OV5J+1L63iPWbXagZwl2Y45wf3bRMJGbszXf32?= =?us-ascii?Q?XoRc7ePlXdfQpnCwU0xLaf8P0YHGl0zXG0dwpSvZXd6AoYm/+tC62qtVuCa2?= =?us-ascii?Q?lS93W/5tmo8MHDAiH0U28L/Yqy3L7dgiQXebz4EtLwjTOYHFKVUqbJ8anwsR?= =?us-ascii?Q?sLg0HmqbgLADEMd1HQ2vEDo0OM6AKgipAEnpBnzL8F8RMiVwVJpva1w/qc09?= =?us-ascii?Q?bNvasHxXncwNtcsi8S1ansmW6/GIuC3I8Z5uzothrJ3ToAtlc/IlcgrSEv40?= =?us-ascii?Q?aHw4+fBpQotgmov8yzLZ0PhXjdZhUYvCY+UnNl5LQz2uTzcyPH6GU2qibIap?= =?us-ascii?Q?IGrhfZ9NFyegEeatm17+S1niiBnaGR/uyQX4h5DbeVfabnHDstIjxK3Pa4nV?= =?us-ascii?Q?S7suiJVlCc72H0OSCqjwEa7AMQW/L8q+7vslt0PcHsK9PR7/SCrWbot9kFDs?= =?us-ascii?Q?R/zu+v4V20qftC25OnQwm52d7ZE+wZOqVVpaHPjyNYvhIlqNN93rkv59WBRu?= =?us-ascii?Q?y3+3HtI9C6jAR/m+EVJAg0nqKHHKsIFWijTm12K8wv6sjZit4w9EV2cO6l2d?= =?us-ascii?Q?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 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linux-kernel-owner@vger.kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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>