From patchwork Sat Apr 8 00:57:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9670825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 95A9860375 for ; Sat, 8 Apr 2017 01:02:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87B8128633 for ; Sat, 8 Apr 2017 01:02:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BE002863A; Sat, 8 Apr 2017 01:02:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A1AF28636 for ; Sat, 8 Apr 2017 01:02:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933871AbdDHBBO (ORCPT ); Fri, 7 Apr 2017 21:01:14 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35787 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934017AbdDHA6w (ORCPT ); Fri, 7 Apr 2017 20:58:52 -0400 Received: by mail-pg0-f68.google.com with SMTP id g2so18622095pge.2; Fri, 07 Apr 2017 17:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1Md6diaDzF6cRE33zOTjv9u5fSKdKOXksmCzqT2xLXY=; b=QqG1M75H31KwLHYNiPc1Q3PiUKPxrC2ZkfZeiDIIG3wX2nQBhz6bkUjQmt+5PRFa61 6IxcqWVHoF+3+0D+ZOKqAtn4In45AuuNPCmubGPbypV0W/UIAWSfpXAnlKeZ4yHXd54N kjJhSLhzdn2+k0nQjF8G6CVLoyM8SOjNpNlirN91t6H5KqdZKfamegXcPBwz6Mnebt5b 7+IPncf0s3j0R6jUCaEyPN4CtVosvhj5cLVsLzcFJOd8V5REz82RH50vB77jpEVyTx6L m5qKZvDdHk0Qb6MxCEg818p1gTznXWYLIuknX9kzs6MbS9O0YBFdlwPELut59jAPhC8r tZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1Md6diaDzF6cRE33zOTjv9u5fSKdKOXksmCzqT2xLXY=; b=s1vCRCzVAfS+0b16chVZWTS5/nU/7AQiCeELUAGfsDPwNCoS0o7Q96SXmDkbCmqswL 3jpPhWlFgyPo9W5v9R0/N2MxaKZ8BQN5nTOZXqPdfdNNE145MalBYXeMrxxWsyZuxWhs hubDqBMu9DE+heC1QOqeb6LBxkPXgZ35HjvYnWTbebZ8PS/heOQRK9iVDNqrL5eoizNO /oO6IHSwzbSXjfto0g/DTM3TIJbIwAHoDHcyHOZhjIuo2OVC0+1rLsmu6YBgb2L4KWkP 3Qh/dhlhik6a/X7YiFyprqNaLEXrQQrObhBrjvGTC27AwxjToeGUeLAruwRFXnv19RKM it2A== X-Gm-Message-State: AN3rC/4SMsEaR2Imxgxr37/0NJZ3RyMfIOKKi50iXicnWPmQLvxecM7aQvKoeAlmtH52Ow== X-Received: by 10.98.155.151 with SMTP id e23mr2435804pfk.24.1491613131468; Fri, 07 Apr 2017 17:58:51 -0700 (PDT) Received: from deepa-ubuntu.hsd1.ca.comcast.net ([2601:647:5000:6620:95ed:e0d8:7705:f3cc]) by smtp.gmail.com with ESMTPSA id b8sm11638130pfk.39.2017.04.07.17.58.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Apr 2017 17:58:51 -0700 (PDT) From: Deepa Dinamani To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: tglx@linutronix.de, viro@zeniv.linux.org.uk, gregkh@linuxfoundation.org, andreas.dilger@intel.com, arnd@arndb.de, bfields@fieldses.org, clm@fb.com, davem@davemloft.net, dsterba@suse.com, dushistov@mail.ru, eparis@redhat.com, jaegeuk@kernel.org, jbacik@fb.com, jlayton@poochiereds.net, john.stultz@linaro.org, jsimmons@infradead.org, mingo@redhat.com, oleg.drokin@intel.com, paul@paul-moore.com, rostedt@goodmis.org, yuchao0@huawei.com, ceph-devel@vger.kernel.org, devel@driverdev.osuosl.org, linux-audit@redhat.com, linux-btrfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-security-module@vger.kernel.org, lustre-devel@lists.lustre.org, netdev@vger.kernel.org, samba-technical@lists.samba.org, y2038@lists.linaro.org Subject: [PATCH 11/12] time: Delete CURRENT_TIME_SEC and CURRENT_TIME Date: Fri, 7 Apr 2017 17:57:09 -0700 Message-Id: <1491613030-11599-12-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491613030-11599-1-git-send-email-deepa.kernel@gmail.com> References: <1491613030-11599-1-git-send-email-deepa.kernel@gmail.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All uses of CURRENT_TIME_SEC and CURRENT_TIME macros have been replaced by other time functions. These macros are also not y2038 safe. And, all their use cases can be fulfilled by y2038 safe ktime_get_* variants. Signed-off-by: Deepa Dinamani Acked-by: John Stultz Reviewed-by: Arnd Bergmann --- include/linux/time.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/time.h b/include/linux/time.h index 23f0f5c..c0543f5 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -151,9 +151,6 @@ static inline bool timespec_inject_offset_valid(const struct timespec *ts) return true; } -#define CURRENT_TIME (current_kernel_time()) -#define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) - /* Some architectures do not supply their own clocksource. * This is mainly the case in architectures that get their * inter-tick times by reading the counter on their interval