Message ID | 1409779158-30963-13-git-send-email-apinski@cavium.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCHZN4WEQUCBBZUMT2QAKGQE32CTNKY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66CCD202E4 for <linaro@patches.linaro.org>; Wed, 3 Sep 2014 21:21:43 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id kx10sf87580440pab.8 for <linaro@patches.linaro.org>; Wed, 03 Sep 2014 14:21: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:subject:date:message-id :in-reply-to:references: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=XoExcmkDx2ju1YBlEu1HpPkyi1MIrme1K7HMZ+xBx3Q=; b=jZNIt5t0tYSuA2vob+2kdAREtRKjJHqgo6yTBd1qGeknra5mDQ1dVnWgD+507spiur w6zWQ1wcIpvuilge7J4a67ZdYk8+xn67tY6LpdAG1t/AtiLqB8i7B2t9MPJf/aVmgsFs 78x0QoECFrT8aLoQ444cy373L+gi75+qzsoMWU/Uf2WUegh1UPHCqYWd9pai5S+uAqtA iB983JMJILpD1I6Gvdf6lDmHO4TBv/7IcvdmdGCHl78QHO1NJceFzOwVV8jkINLa2Dgz jZaKRXvzi9Ue8MtmgU6SrCLsMlAlVdqTcx0q95ALcznLSMTFFYP14JAbaL6GY87jMugd QoKA== X-Gm-Message-State: ALoCoQmu5/3MqK1lJZMU6KETgozzWS8S4n0LSxiDWedePeuvtfxraVbzQXF9Qapv2PqbgDVbD6yk X-Received: by 10.70.119.74 with SMTP id ks10mr96108pdb.9.1409779302266; Wed, 03 Sep 2014 14:21:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.240 with SMTP id n103ls18286qgd.13.gmail; Wed, 03 Sep 2014 14:21:42 -0700 (PDT) X-Received: by 10.220.172.8 with SMTP id j8mr79421vcz.32.1409779302144; Wed, 03 Sep 2014 14:21:42 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id w12si4464847vci.4.2014.09.03.14.21.42 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 14:21:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lf12so9580869vcb.34 for <patchwork-forward@linaro.org>; Wed, 03 Sep 2014 14:21:42 -0700 (PDT) X-Received: by 10.220.77.65 with SMTP id f1mr64290vck.48.1409779302078; Wed, 03 Sep 2014 14:21: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.221.45.67 with SMTP id uj3csp740227vcb; Wed, 3 Sep 2014 14:21:41 -0700 (PDT) X-Received: by 10.66.145.103 with SMTP id st7mr554pab.43.1409779301339; Wed, 03 Sep 2014 14:21:41 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id w3si4685721pdn.50.2014.09.03.14.21.41 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Sep 2014 14:21:41 -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 1XPHyS-0003sY-DQ; Wed, 03 Sep 2014 21:20:16 +0000 Received: from mail-ig0-f172.google.com ([209.85.213.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XPHxz-0002Wg-U1 for linux-arm-kernel@lists.infradead.org; Wed, 03 Sep 2014 21:19:49 +0000 Received: by mail-ig0-f172.google.com with SMTP id h15so1613357igd.11 for <linux-arm-kernel@lists.infradead.org>; Wed, 03 Sep 2014 14:19:27 -0700 (PDT) X-Received: by 10.43.65.195 with SMTP id xn3mr137675icb.48.1409779166937; 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 qp10sm6550506igb.4.2014.09.03.14.19.26 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 s83LJPKK031059 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 3 Sep 2014 14:19:25 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s83LJPXK031058; Wed, 3 Sep 2014 14:19:25 -0700 From: Andrew Pinski <apinski@cavium.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pinskia@gmail.com Subject: [PATCH 12/24] ARM64:ILP32: COMPAT_USE_64BIT_TIME is true for ILP32 tasks Date: Wed, 3 Sep 2014 14:19:06 -0700 Message-Id: <1409779158-30963-13-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140903_141948_006461_A7A493FF X-CRM114-Status: GOOD ( 13.66 ) X-Spam-Score: -1.4 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.172 listed in list.dnswl.org] -0.7 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.213.172 listed in wl.mailspike.net] Cc: Andrew Pinski <apinski@cavium.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> 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-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> 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.175 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 9082b27..eca6eec 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h @@ -76,6 +76,9 @@ struct compat_timeval { s32 tv_usec; }; +/* ILP32 uses 64bit time_t and not the above compat structures */ +#define COMPAT_USE_64BIT_TIME (!is_a32_compat_task()) + struct compat_stat { #ifdef __AARCH64EB__ short st_dev;
Since __kernel_long_t (time_t) is long long, we need to tell the rest of kernel that we use 64bit time_t for compat when the task is not an AARCH32 task. The reason why we check AARCH32 rather than ILP32 here is because if we don't have AARCH32 compiled in (which is going to be the common case due to AARCH32 requiring 4k pages). Signed-off-by: Andrew Pinski <apinski@cavium.com> --- arch/arm64/include/asm/compat.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)