From patchwork Sat May 24 07:01: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: 30872 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D2EA52066E for ; Sat, 24 May 2014 07:04:32 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wm4sf27291727obc.6 for ; Sat, 24 May 2014 00:04:32 -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=U375P2lze4SkEDY8sBi1cbISzh4XFdSHqhekVod/ud4=; b=f8kUn7QcpUwLzm980xDwjPzTzz8LCMfaaLfNF8Bi1YCA+ftnq9OisqK//w70hS9/YP AAx3llPXZszkPkucszl3HyYAk8TBlhqs1mJQaTEuexU1Kcc8an2I46EShSWeN2aph7so dBWYpkXT4YDelqWIdCUHUyEOTyTsBi4cLP6cfW3lWA00yiYq61XMNGuXT83E99Izcm5d YpggSrDWut0oL01qkd5CD5vn42AGBvGrAk68GAy/i8uAvTOPS6jaCsNmly69EcF7Gra2 uuSw5lAGt2a+YU9jEhOs9W4aXbAS0YkmMBWy8xy+2IHk6PNeKbWdOeVdlhlc/z0LpQz/ MUUA== X-Gm-Message-State: ALoCoQlag2pYVBhJqIM3J69AHI+DdKL33yQ5w5T3ziBulDa/nIuHfuW9CZ9nHkcOvSdTO+r+p4T2 X-Received: by 10.182.176.8 with SMTP id ce8mr4611457obc.7.1400915072428; Sat, 24 May 2014 00:04:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.145 with SMTP id f17ls1944504qgd.95.gmail; Sat, 24 May 2014 00:04:32 -0700 (PDT) X-Received: by 10.52.139.101 with SMTP id qx5mr7154448vdb.17.1400915072288; Sat, 24 May 2014 00:04:32 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id n9si3056952vcx.91.2014.05.24.00.04.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 May 2014 00:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id db11so7306785veb.15 for ; Sat, 24 May 2014 00:04:32 -0700 (PDT) X-Received: by 10.52.173.165 with SMTP id bl5mr7134459vdc.13.1400915072213; Sat, 24 May 2014 00:04:32 -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 ib8csp87451vcb; Sat, 24 May 2014 00:04:31 -0700 (PDT) X-Received: by 10.140.48.1 with SMTP id n1mr12968136qga.107.1400915071840; Sat, 24 May 2014 00:04:31 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id kx8si6032409qcb.4.2014.05.24.00.04.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 May 2014 00:04:31 -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 1Wo5z9-00057x-NQ; Sat, 24 May 2014 07:03:15 +0000 Received: from mail-ie0-f172.google.com ([209.85.223.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wo5yf-0004lU-2j for linux-arm-kernel@lists.infradead.org; Sat, 24 May 2014 07:02:45 +0000 Received: by mail-ie0-f172.google.com with SMTP id tp5so5975118ieb.17 for ; Sat, 24 May 2014 00:02:23 -0700 (PDT) X-Received: by 10.42.78.136 with SMTP id n8mr9490056ick.28.1400914943602; 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 m1sm9982637ige.22.2014.05.24.00.02.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 00:02:22 -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 s4O72LKj009758 (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 s4O72LE5009757; 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 04/24] ARM64:ILP32: Set kernel_long to long long so we can reuse most of the same syscalls as LP64. Date: Sat, 24 May 2014 00:01:59 -0700 Message-Id: <1400914939-9708-5-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_182992_6BD17714 X-CRM114-Status: GOOD ( 14.01 ) 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.172 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.128.170 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 Since we want time_t and some other userland types to be the same between ILP32 and LP64, we define __kernel_long_t to be long long. Thanks, Andrew Pinski Signed-off-by: Andrew Pinski --- arch/arm64/include/asm/Kbuild | 1 - arch/arm64/include/uapi/asm/posix_types.h | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-) create mode 100644 arch/arm64/include/uapi/asm/posix_types.h diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 83f71b3..f06a9c2 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild @@ -30,7 +30,6 @@ generic-y += msgbuf.h generic-y += mutex.h generic-y += pci.h generic-y += poll.h -generic-y += posix_types.h generic-y += preempt.h generic-y += resource.h generic-y += rwsem.h diff --git a/arch/arm64/include/uapi/asm/posix_types.h b/arch/arm64/include/uapi/asm/posix_types.h new file mode 100644 index 0000000..53b15e6 --- /dev/null +++ b/arch/arm64/include/uapi/asm/posix_types.h @@ -0,0 +1,12 @@ +#ifndef __ASM_POSIX_TYPES_H +#define __ASM_POSIX_TYPES_H + +#ifndef __LP64__ /* ILP32 */ +typedef long long __kernel_long_t; +typedef unsigned long long __kernel_ulong_t; +#define __kernel_long_t __kernel_long_t +#endif + +#include + +#endif /* __ASM_POSIX_TYPES_H */