From patchwork Thu Jun 9 05:05:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9166269 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 B8B8960467 for ; Thu, 9 Jun 2016 05:10:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB15626490 for ; Thu, 9 Jun 2016 05:10:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FEF128294; Thu, 9 Jun 2016 05:10:34 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 2D0C126490 for ; Thu, 9 Jun 2016 05:10:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426641AbcFIFHh (ORCPT ); Thu, 9 Jun 2016 01:07:37 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:32937 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426570AbcFIFGF (ORCPT ); Thu, 9 Jun 2016 01:06:05 -0400 Received: by mail-pa0-f68.google.com with SMTP id di3so1922342pab.0; Wed, 08 Jun 2016 22:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kdrOtVAU8dIAdeoFJUQ+syg6XBdq15AI1Z/0YY+pmkA=; b=kK0SC0YL/bd3G5O6hxvuVpzznt8rXeXPkesyZcfEh/O/8kc+G9YZ4AxTaG+re9J8xu ss55gpaQKY0bwahBk4BIMDDpcPE35eG+rgnASp/SbkRS81Gj0xihtrGEWzmMpt+XyLv2 asa5Hy+WqpbrDvO3XPuixmnQ9kmV/hzZR0pf3XBeKRUfS7Uq90/Ja2cIWMRc+wTLqhUC RpzSXaMEruvq1qeUjju5DuLodjKZQPXtQfYlc0JgAUgR4Jrtp6d5wlPUQ9Kz5Uz/JmGm gGDcvWyr1OVv6/N4UunZ+K38XuQKmXgpR7GNfvSjzcDlAnStFOpNPgjaatOBhHvxp+w4 kqSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kdrOtVAU8dIAdeoFJUQ+syg6XBdq15AI1Z/0YY+pmkA=; b=X+klIqpMWtPdyAyMk4mNj1rdiFXMpuANcZsfvFTgza+ADPbgZINUt3eS1S8OO/aGk2 GO1PfWeb0jhSsSjzlU90D2BUp8XEK0xLMiPYFLQwMxYzsNSqz4kNvgXE6eW7ura9rrUT ZFupSwTFt0c+ZaBNxtNZuICXOSbBKMiL9khUhp/13WcJfkgEKbJi55Z1SMzgk4cdKzES lXqi2UZUT4Qp9nx8e0baaezVrva0lEI+vuZu2W569s12yoqAEwpiwHTVqQmNMSxqsNeO Ol2Jy4ZRLmF2Hfl0KaxArFBcHMuF3XzyrJy9bss3pTAkWkOME77obPHCOZCW/yNMfHPY 3ZBw== X-Gm-Message-State: ALyK8tLguCcBTP0N8qkCUuOJuzHruUEHkvJRWNi5LGIjWi57E/7AS9+A/HQ5XF81d3rSUQ== X-Received: by 10.66.148.74 with SMTP id tq10mr10092979pab.21.1465448764241; Wed, 08 Jun 2016 22:06:04 -0700 (PDT) Received: from deepa-ubuntu.hsd1.ca.comcast.net (c-73-252-251-201.hsd1.ca.comcast.net. [73.252.251.201]) by smtp.gmail.com with ESMTPSA id 129sm6220808pfe.3.2016.06.08.22.06.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 22:06:03 -0700 (PDT) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Al Viro , Linus Torvalds , y2038@lists.linaro.org, John Stultz Subject: [PATCH 21/21] time: Delete CURRENT_TIME_SEC and CURRENT_TIME macro Date: Wed, 8 Jun 2016 22:05:05 -0700 Message-Id: <1465448705-25055-22-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465448705-25055-1-git-send-email-deepa.kernel@gmail.com> References: <1465448705-25055-1-git-send-email-deepa.kernel@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All uses of these macors have been replaced by other time functions. These macros are also not y2038 safe. And, all its usecases can be fulfilled by y2038 safe ktime_get_* variants. Signed-off-by: Deepa Dinamani Cc: John Stultz Cc: Thomas Gleixner Acked-by: John Stultz --- include/linux/time.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/time.h b/include/linux/time.h index 4cea09d..a5a07c0 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