From patchwork Sat May 24 07:02:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 30878 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8920A2066E for ; Sat, 24 May 2014 07:05:36 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id va2sf27295209obc.5 for ; Sat, 24 May 2014 00:05:36 -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:subject:date:message-id :in-reply-to:references:to:to:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=Hox4ZPE3JkV40I+ukKM8XePgcseFYHfxPpoLBrHkgv0=; b=SK3l0GnD0JS6FEymCCigUgkhqNl6bUTOQLzwmsyG+Sy8tMVtd6yr55La4KFvZLIIcy 4SXVDhwvr2xW5bNPodcKh3NrfhPf/jRZU+AK3K0XfJRSWquvKtOrddYD9CG2q7uMpuOG Dk4Qbsn4o2seBd+7h4bdfv36tn7nYnV86dgbw0e6F5VSahzQBdkY9C4kUbj0zyzZ1q0R R2CP/jZ6o32+ZGDWdIJsSj4DRT/64+l4rw9dAAOfgjmbIpYbbDvnjSf/uErO1Vm6o9RS IUVmVtIY0zIri8CnesWwEKqQOO4ortk2yE+GxlV4WFquHYMMaNRq87LRacDLRnV9uLrJ uEbA== X-Gm-Message-State: ALoCoQklxovdPRh7niTl+FA3OZ90/IPWR7paHZpRwiyLz9yRrBqDoGCHOlzx1UZ1guCj/Azuw08Y X-Received: by 10.42.87.12 with SMTP id w12mr4156021icl.9.1400915136061; Sat, 24 May 2014 00:05:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.203 with SMTP id v69ls2005763qgd.6.gmail; Sat, 24 May 2014 00:05:35 -0700 (PDT) X-Received: by 10.52.173.165 with SMTP id bl5mr7137971vdc.13.1400915135934; Sat, 24 May 2014 00:05:35 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id v10si3071896vew.44.2014.05.24.00.05.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 May 2014 00:05:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id ik5so3927881vcb.17 for ; Sat, 24 May 2014 00:05:35 -0700 (PDT) X-Received: by 10.58.195.130 with SMTP id ie2mr8587974vec.3.1400915135871; Sat, 24 May 2014 00:05:35 -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.220.221.72 with SMTP id ib8csp87514vcb; Sat, 24 May 2014 00:05:35 -0700 (PDT) X-Received: by 10.140.40.180 with SMTP id x49mr13080873qgx.16.1400915134721; Sat, 24 May 2014 00:05:34 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id w10si6220195qad.80.2014.05.24.00.05.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 May 2014 00:05:34 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; 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 1Wo5zi-0005a8-SR; Sat, 24 May 2014 07:03:50 +0000 Received: from mail-ie0-f178.google.com ([209.85.223.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wo5yf-0004la-Eh for linux-arm-kernel@lists.infradead.org; Sat, 24 May 2014 07:02:47 +0000 Received: by mail-ie0-f178.google.com with SMTP id rl12so5940417iec.37 for ; Sat, 24 May 2014 00:02:24 -0700 (PDT) X-Received: by 10.42.110.141 with SMTP id q13mr6830710icp.32.1400914943970; Sat, 24 May 2014 00:02:23 -0700 (PDT) Received: from localhost.localdomain (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPSA id l9sm132953igx.7.2014.05.24.00.02.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 00:02:23 -0700 (PDT) Received: from localhost.localdomain (apinskidesktop [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4O72Lad009762 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sat, 24 May 2014 00:02:21 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s4O72L1v009761; Sat, 24 May 2014 00:02:21 -0700 From: Andrew Pinski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/24] ARM64:UAPI: Set the correct __BITS_PER_LONG for ILP32. Date: Sat, 24 May 2014 00:02:00 -0700 Message-Id: <1400914939-9708-6-git-send-email-apinski@cavium.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1400914939-9708-1-git-send-email-apinski@cavium.com> References: <1400914939-9708-1-git-send-email-apinski@cavium.com> To: linux-arm-kernel@lists.infradead.org To: linux-kernel@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140524_000245_603708_7399905F X-CRM114-Status: GOOD ( 11.20 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.223.178 listed in list.dnswl.org] Cc: Andrew Pinski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: apinski@cavium.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) smtp.mail=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 We need to say to the userland API that bits per long is 32bits for ILP32. Thanks, Andrew Pinski Signed-off-by: Andrew Pinski --- arch/arm64/include/uapi/asm/bitsperlong.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h b/arch/arm64/include/uapi/asm/bitsperlong.h index fce9c29..5e06c59 100644 --- a/arch/arm64/include/uapi/asm/bitsperlong.h +++ b/arch/arm64/include/uapi/asm/bitsperlong.h @@ -16,7 +16,12 @@ #ifndef __ASM_BITSPERLONG_H #define __ASM_BITSPERLONG_H -#define __BITS_PER_LONG 64 +/* Assuming __LP64__ will be defined for native ELF64's and not for ILP32. */ +#ifdef __LP64__ +# define __BITS_PER_LONG 64 +#else +# define __BITS_PER_LONG 32 +#endif #include