From patchwork Sat May 24 07:02:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 30887 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5AA772066E for ; Sat, 24 May 2014 07:11:31 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf23545552pbb.2 for ; Sat, 24 May 2014 00:11:30 -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:to:to:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=7EQVqYRNxak7m7laNWIvL5JVN2DrsPOSBa+RF7A1NCk=; b=Mk9l1Y2JVjPP9qzrCqTP6O/6h5jYGuHeBHAkxZkaM/1qiOukAp/cDaLf59Hp27yrlJ D5nWbNhCRtsN2TLMxOoW9l7P56Tw3xeMG93lT5Iz6ydlyynzlvy7uuz3FlAaweeC/Fwf uqmZahBPxVm6inmFKNBqHEuaBhufnVDXon+ANbZAH3wv+zAswgSRiVne56K6KJXcLUPU uj6u6HJiKvzVkZG5EDqPkTUEkljotSuebqOztNdZwZ5TornKfzMMGL+2G7gpO98iBS3w 6Zo+RmQ7evv+RliTSY9LojtlWCkcBtNEaTVXy+ZRe6TwbXBY4Bc62fTkDuTMEbXE1tbA XWMA== X-Gm-Message-State: ALoCoQmAnVcgS23lhuAmbqZw0jW9vLQCc3lQkP7ZLb6nDwBhOYyCDEQ70LTNJr8rjq27O0VXexaa X-Received: by 10.66.232.38 with SMTP id tl6mr4726942pac.33.1400915490542; Sat, 24 May 2014 00:11:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.104 with SMTP id u95ls1766695qgd.5.gmail; Sat, 24 May 2014 00:11:30 -0700 (PDT) X-Received: by 10.53.0.135 with SMTP id ay7mr7257873vdd.11.1400915490422; Sat, 24 May 2014 00:11:30 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id bk6si3072242vcb.55.2014.05.24.00.11.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 May 2014 00:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id la4so7419459vcb.27 for ; Sat, 24 May 2014 00:11:30 -0700 (PDT) X-Received: by 10.52.185.72 with SMTP id fa8mr7240916vdc.12.1400915487304; Sat, 24 May 2014 00:11:27 -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 ib8csp87789vcb; Sat, 24 May 2014 00:11:26 -0700 (PDT) X-Received: by 10.68.136.226 with SMTP id qd2mr12096586pbb.72.1400915486602; Sat, 24 May 2014 00:11:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ag2si6848068pbc.83.2014.05.24.00.11.26 for ; Sat, 24 May 2014 00:11:26 -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 S1751940AbaEXHLS (ORCPT + 27 others); Sat, 24 May 2014 03:11:18 -0400 Received: from mail-ie0-f170.google.com ([209.85.223.170]:42449 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751304AbaEXHJZ (ORCPT ); Sat, 24 May 2014 03:09:25 -0400 Received: by mail-ie0-f170.google.com with SMTP id at1so5991735iec.29 for ; Sat, 24 May 2014 00:09:25 -0700 (PDT) X-Received: by 10.50.124.101 with SMTP id mh5mr9949640igb.41.1400915365361; Sat, 24 May 2014 00:09:25 -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 qh3sm10016919igb.17.2014.05.24.00.09.24 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 00:09:24 -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 s4O72MHJ009799 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sat, 24 May 2014 00:02:22 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s4O72MoP009798; Sat, 24 May 2014 00:02:22 -0700 From: Andrew Pinski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andrew Pinski Subject: [PATCH 14/24] ARM64:ILP32: COMPAT_USE_64BIT_TIME is true for ILP32 tasks. Date: Sat, 24 May 2014 00:02:09 -0700 Message-Id: <1400914939-9708-15-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 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.182 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: , 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). Thanks, Andrew Pinski Signed-off-by: Andrew Pinski --- arch/arm64/include/asm/compat.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 85f945c..c77fc0f 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;