Message ID | 1409779158-30963-5-git-send-email-apinski@cavium.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCHZN4WEQUCBBSEMT2QAKGQEM6DI6NY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 00BDA202E4 for <linaro@patches.linaro.org>; Wed, 3 Sep 2014 21:21:12 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id tr6sf47058657ieb.2 for <linaro@patches.linaro.org>; Wed, 03 Sep 2014 14:21:12 -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=JvdfC5BJMlg9M65CCLFdn3l+eCeuLMeeXUQb/wC6hk0=; b=fslTCWAYj3zT/K+kvOuV/JPnwE7heCMkSKuujDmh/+GBki6ugr5LUogvX6JvmOZEOZ +N2YIHXZ6uBqK8EvRw94SwnoBxsVlX3S83DolL6ju1nnXIHDhj71SNj0Yl3STqpELSz4 L1ja5v8Zn727Wf+/b2E6B1PvZKW1vvqxAAxMJYdSfG+FCBSgCucHpIjovzqiWsHf74mi syyEwp1HCjF7rESWllBvzm6dLDTPh+jRihtRk8m/4Un/b/UYwLtGp3fieEBKwaslTILK vHBO3bge0bCeOwNMVB2PNqHV49DXUBOzior/b3Fu+VXbpbyMCatFlobGt7x6EnT8w2zw rc0w== X-Gm-Message-State: ALoCoQmoQ++8tecBXz8CJlx5AP8evAxiDAhyM1rakn6kaGNxVJ1CvUJGpBxIl1FWbtlzaYdL7OgF X-Received: by 10.182.230.133 with SMTP id sy5mr94696obc.22.1409779272628; Wed, 03 Sep 2014 14:21:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.38 with SMTP id i35ls15490qgf.76.gmail; Wed, 03 Sep 2014 14:21:12 -0700 (PDT) X-Received: by 10.52.234.228 with SMTP id uh4mr71919vdc.34.1409779272466; Wed, 03 Sep 2014 14:21:12 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id ts3si4442092vcb.70.2014.09.03.14.21.12 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 14:21:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so9494340vcb.21 for <patchwork-forward@linaro.org>; Wed, 03 Sep 2014 14:21:12 -0700 (PDT) X-Received: by 10.52.3.40 with SMTP id 8mr78711vdz.24.1409779272387; Wed, 03 Sep 2014 14:21:12 -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 uj3csp740187vcb; Wed, 3 Sep 2014 14:21:11 -0700 (PDT) X-Received: by 10.70.119.1 with SMTP id kq1mr25328pdb.35.1409779271591; Wed, 03 Sep 2014 14:21:11 -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.21.08 for <multiple recipients>; Wed, 03 Sep 2014 14:21:08 -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 S932507AbaICVUn (ORCPT <rfc822;amit.pundir@linaro.org> + 26 others); Wed, 3 Sep 2014 17:20:43 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:37865 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756519AbaICVT2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 3 Sep 2014 17:19:28 -0400 Received: by mail-ig0-f176.google.com with SMTP id hn18so1616352igb.3 for <linux-kernel@vger.kernel.org>; Wed, 03 Sep 2014 14:19:27 -0700 (PDT) X-Received: by 10.50.93.105 with SMTP id ct9mr170215igb.28.1409779166959; Wed, 03 Sep 2014 14:19:26 -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 rr3sm6489446igb.19.2014.09.03.14.19.25 for <multiple recipients> (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 s83LJOEm031027 (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 s83LJOkG031026; Wed, 3 Sep 2014 14:19:24 -0700 From: Andrew Pinski <apinski@cavium.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pinskia@gmail.com Cc: Andrew Pinski <apinski@cavium.com> Subject: [PATCH 04/24] ARM64:ILP32: Set kernel_long to long long so we can reuse most of the same syscalls as LP64 Date: Wed, 3 Sep 2014 14:18:58 -0700 Message-Id: <1409779158-30963-5-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: <patchwork-forward.linaro.org> 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.176 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: <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/posix_types.h b/arch/arm64/include/uapi/asm/posix_types.h index 7985ff6..0961945 100644 --- a/arch/arm64/include/uapi/asm/posix_types.h +++ b/arch/arm64/include/uapi/asm/posix_types.h @@ -5,6 +5,12 @@ typedef unsigned short __kernel_old_uid_t; typedef unsigned short __kernel_old_gid_t; #define __kernel_old_uid_t __kernel_old_uid_t +#ifdef __ILP32__ +typedef long long __kernel_long_t; +typedef unsigned long long __kernel_ulong_t; +#define __kernel_long_t __kernel_long_t +#endif + #include <asm-generic/posix_types.h> -#endif /* __ASM_POSIX_TYPES_H */ +#endif /* __ASM_POSIX_TYPES_H */
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. Signed-off-by: Andrew Pinski <apinski@cavium.com> --- arch/arm64/include/uapi/asm/posix_types.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)