From patchwork Wed Sep 3 21:18:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 36642 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DAC6E202E4 for ; Wed, 3 Sep 2014 21:20:59 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g18sf48204478oah.10 for ; Wed, 03 Sep 2014 14:20:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=IZmhIp9TFYYrQFAq4EIYuEA6TlpvEXOZMRXn7zPqy5k=; b=HkE/OdX5DqrKOuxhEkgS19EKVC50gzjmnQcgOMt/dd31vxSBk0GkUurhMpNp7NzInD 1EcBJLf8/okv8xMOegKochg3owEHsvdFG5EVTVgHQabSP8KiNK7EIlaoddodXTpPE/zx Rw26ITX2aTBUh5aYSFB1RKPA4fs9QRbSu8dtCTJAGRw0VdUztpwmhGY0JS/Cpxaak1Sr /gahG5wZ13gpfMNfz3OBLvRCoDjlW2JEaRFGvkon2A64BQGtFjs9IRsJyzBfGK/HN+uU gpTvsklKhsJU/Sf+2/qvU/ey4Cvh2Qfo+Uk55rrjQGQOkUu7OYfuTkHDEOlDgBVaO38e eOxQ== X-Gm-Message-State: ALoCoQkRvcHROnO1nVOdYKZyBRlsKkvGY/I+1mwO7mC7h+y37oMgTaTzRiGoRtvqNYOBn2gsy9ut X-Received: by 10.182.4.73 with SMTP id i9mr81898obi.28.1409779259514; Wed, 03 Sep 2014 14:20:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.212 with SMTP id u78ls19216qge.43.gmail; Wed, 03 Sep 2014 14:20:59 -0700 (PDT) X-Received: by 10.220.105.142 with SMTP id t14mr96650vco.14.1409779259420; Wed, 03 Sep 2014 14:20:59 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id rm9si4456779vcb.29.2014.09.03.14.20.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 14:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so9779472vcb.28 for ; Wed, 03 Sep 2014 14:20:59 -0700 (PDT) X-Received: by 10.52.3.40 with SMTP id 8mr78240vdz.24.1409779259349; Wed, 03 Sep 2014 14:20:59 -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.221.45.67 with SMTP id uj3csp740159vcb; Wed, 3 Sep 2014 14:20:58 -0700 (PDT) X-Received: by 10.66.182.227 with SMTP id eh3mr236351pac.68.1409779258500; Wed, 03 Sep 2014 14:20:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si13610922pdi.2.2014.09.03.14.20.55 for ; Wed, 03 Sep 2014 14:20:56 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756743AbaICVUl (ORCPT + 26 others); Wed, 3 Sep 2014 17:20:41 -0400 Received: from mail-ig0-f177.google.com ([209.85.213.177]:50841 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756521AbaICVT2 (ORCPT ); Wed, 3 Sep 2014 17:19:28 -0400 Received: by mail-ig0-f177.google.com with SMTP id r10so9889078igi.4 for ; Wed, 03 Sep 2014 14:19:27 -0700 (PDT) X-Received: by 10.43.101.199 with SMTP id db7mr270844icc.95.1409779167187; Wed, 03 Sep 2014 14:19:27 -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 ig9sm6508136igb.13.2014.09.03.14.19.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Sep 2014 14:19:26 -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 s83LJOVn031031 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 3 Sep 2014 14:19:24 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s83LJO68031030; Wed, 3 Sep 2014 14:19:24 -0700 From: Andrew Pinski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pinskia@gmail.com Cc: Andrew Pinski Subject: [PATCH 05/24] ARM64:UAPI: Set the correct __BITS_PER_LONG for ILP32 Date: Wed, 3 Sep 2014 14:18:59 -0700 Message-Id: <1409779158-30963-6-git-send-email-apinski@cavium.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1409779158-30963-1-git-send-email-apinski@cavium.com> References: <1409779158-30963-1-git-send-email-apinski@cavium.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.169 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We need to say to the userland API that bits per long is 32bits for ILP32. Signed-off-by: Andrew Pinski --- arch/arm64/include/uapi/asm/bitsperlong.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h b/arch/arm64/include/uapi/asm/bitsperlong.h index fce9c29..bb716d0 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 +/* Assuming __LP64__ will be defined for native ELF64's and not for ILP32. */ +#ifdef __LP64__ +# define __BITS_PER_LONG 64 +#elif defined(__ILP32__) +# define __BITS_PER_LONG 32 +#else +# error "Unknown ABI; not ILP32 or LP64" +#endif #include