From patchwork Mon Jun 20 00:27:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9186345 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 87E6D60871 for ; Mon, 20 Jun 2016 00:41:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73243200F5 for ; Mon, 20 Jun 2016 00:41:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6776322362; Mon, 20 Jun 2016 00:41:06 +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 83B1F200F5 for ; Mon, 20 Jun 2016 00:41:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751450AbcFTAlD (ORCPT ); Sun, 19 Jun 2016 20:41:03 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33369 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbcFTAlB (ORCPT ); Sun, 19 Jun 2016 20:41:01 -0400 Received: by mail-pf0-f196.google.com with SMTP id c74so10306455pfb.0 for ; Sun, 19 Jun 2016 17:40:44 -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=6RorhqjZVvPEYzPQbg5wmGfPGrmFV5wk/RCBZLQZQCI=; b=YquxxPuaJMQ7IRWI0PpN6S7i8tXn4FbXFZ4MEkvYnh+YHeyysjSFBi4n2Jn14qfgRY HaoIZX3o2QsWAzYwif204H86TzycVvU50Noi/8zVbuJxf1r/E6uG0sTol8w/P8ZZ3PTS VXdEOpO76xo0qJ/j9TgQgfvQ7rhywhYx04KUYwRF1n0df53O5+o5x35w71RoosHuDtDK 5xDEW/6cPXW/RxcletJwK9qh0oe+j6elycdey7N7KvjCa7o2QvFlPq95NT6+ASduiGl5 zsljrKbvvUksWVy9amTYEd6qqUPu5Y71aMMpJEErLW2C5ZQo9NYlvfTAhiajvCUFkLeA 5Clw== 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=6RorhqjZVvPEYzPQbg5wmGfPGrmFV5wk/RCBZLQZQCI=; b=SPY5oSr+5A5yJLn5ZDVgBhjuY4k0Cg4EXI3nkiOMj3z8gfR2QK6FH5TzR6DPNgUjzo QUOmePlRpg3Pj99V153jl3UvfLeqYWFTxorX2GV8RMKIZv7KNicrcFyjkGNP9ZpIBbdU r787jXZLoMoPFTMsjhWT/ZRKTJ3iFX4FNqFr7AUc7xiA7geGR3VF9gahZ1NG+q2tzZZR 4Xrafeq1RHfjgAAch7U8dGCep48BMVx0wszutaozdSjsGB+lySRaQYy8Aqw8pnykoGgs ovRbGCKDRClcqStZQ1gxafpBFK3hhczXc8aAuJftZ/dpsK3oKVO/cWxQ63pAxtMiOdlR 34lQ== X-Gm-Message-State: ALyK8tK0q519J+2uey4/Op6CAptX7bIGjponQRTN29Mg5n7s4BCaqHm54D/Cnh+CrANhlA== X-Received: by 10.98.100.14 with SMTP id y14mr18759030pfb.84.1466382529262; Sun, 19 Jun 2016 17:28:49 -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 s12sm34984980pfj.57.2016.06.19.17.28.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Jun 2016 17:28:47 -0700 (PDT) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, tglx@linutronix.de, torvalds@linux-foundation.org, tytso@mit.edu, viro@zeniv.linux.org.uk, y2038@lists.linaro.org, John Stultz Subject: [PATCH v2 23/24] time: Delete CURRENT_TIME_SEC and CURRENT_TIME macro Date: Sun, 19 Jun 2016 17:27:22 -0700 Message-Id: <1466382443-11063-24-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466382443-11063-1-git-send-email-deepa.kernel@gmail.com> References: <1466382443-11063-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 macros have been replaced by other time functions. These macros are also not y2038 safe. And, all its use cases 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