From patchwork Tue May 13 09:06:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ley Foon Tan X-Patchwork-Id: 4166241 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 24AD8BFF02 for ; Tue, 13 May 2014 10:40:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5639E201F5 for ; Tue, 13 May 2014 10:40:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E1B8201DD for ; Tue, 13 May 2014 10:40:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761005AbaEMKj6 (ORCPT ); Tue, 13 May 2014 06:39:58 -0400 Received: from mail-bn1bon0135.outbound.protection.outlook.com ([157.56.111.135]:28346 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760028AbaEMKj4 (ORCPT ); Tue, 13 May 2014 06:39:56 -0400 X-Greylist: delayed 4712 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 May 2014 06:39:56 EDT Received: from BL2FFO11FD030.protection.gbl (10.173.160.31) by BL2FFO11HUB022.protection.gbl (10.173.161.46) with Microsoft SMTP Server (TLS) id 15.0.939.9; Tue, 13 May 2014 09:06:19 +0000 Received: from SJ-ITEXEDGE02.altera.priv.altera.com (66.35.236.232) by BL2FFO11FD030.mail.protection.outlook.com (10.173.161.40) with Microsoft SMTP Server (TLS) id 15.0.939.9 via Frontend Transport; Tue, 13 May 2014 09:06:18 +0000 Received: from sj-mail01.altera.com (137.57.1.6) by SJ-ITEXEDGE02.altera.priv.altera.com (66.35.236.232) with Microsoft SMTP Server id 8.3.348.2; Tue, 13 May 2014 01:52:42 -0700 Received: from leyfoon-vm (leyfoon-vm.altera.com [137.57.103.35]) by sj-mail01.altera.com (8.13.7+Sun/8.13.7) with SMTP id s4D96DA2004428; Tue, 13 May 2014 02:06:14 -0700 (PDT) Received: by leyfoon-vm (sSMTP sendmail emulation); Tue, 13 May 2014 17:06:12 +0800 From: Ley Foon Tan To: , CC: Ley Foon Tan , , , "James E.J. Bottomley" , Helge Deller , Subject: [PATCH 17/25] parisc: Add 32 bit time_t and clock_t Date: Tue, 13 May 2014 17:06:06 +0800 Message-ID: <1399971966-4598-1-git-send-email-lftan@altera.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1399971456-3941-1-git-send-email-lftan@altera.com> References: <1399971456-3941-1-git-send-email-lftan@altera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:66.35.236.232; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019001)(6009001)(199002)(189002)(62966002)(74662001)(6806004)(46102001)(44976005)(19580395003)(81342001)(19580405001)(83322001)(31966008)(50226001)(4396001)(80022001)(74502001)(81542001)(102836001)(77156001)(92726001)(33646001)(20776003)(36756003)(47776003)(50466002)(86362001)(76482001)(87936001)(50986999)(79102001)(92566001)(83072002)(89996001)(2009001)(48376002)(87286001)(84676001)(77982001)(76176999)(85852003)(16796002); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2FFO11HUB022; H:SJ-ITEXEDGE02.altera.priv.altera.com; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:; X-OriginatorOrg: altera.onmicrosoft.com X-Forefront-PRVS: 0210479ED8 Received-SPF: SoftFail (: domain of transitioning altera.com discourages use of 66.35.236.232 as permitted sender) Authentication-Results: spf=softfail (sender IP is 66.35.236.232) smtp.mailfrom=lftan@altera.com; Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Override time_t and clock_t in include/uapi/asm-generic. Signed-off-by: Ley Foon Tan --- arch/parisc/include/uapi/asm/posix_types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/parisc/include/uapi/asm/posix_types.h b/arch/parisc/include/uapi/asm/posix_types.h index b934425..21fcf1c 100644 --- a/arch/parisc/include/uapi/asm/posix_types.h +++ b/arch/parisc/include/uapi/asm/posix_types.h @@ -19,6 +19,14 @@ typedef int __kernel_suseconds_t; typedef long long __kernel_off64_t; typedef unsigned long long __kernel_ino64_t; +#ifndef CONFIG_64BIT +typedef long __kernel_time_t; +#define __kernel_time_t __kernel_time_t + +typedef long __kernel_clock_t; +#define __kernel_clock_t __kernel_clock_t +#endif + #include #endif