From patchwork Sat Jun 25 21:37:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9198743 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 E4D8F6075F for ; Sat, 25 Jun 2016 21:39:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC5D328527 for ; Sat, 25 Jun 2016 21:39:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0D652852B; Sat, 25 Jun 2016 21:39:59 +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 880A028527 for ; Sat, 25 Jun 2016 21:39:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751644AbcFYVjn (ORCPT ); Sat, 25 Jun 2016 17:39:43 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34266 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbcFYVit (ORCPT ); Sat, 25 Jun 2016 17:38:49 -0400 Received: by mail-pa0-f67.google.com with SMTP id us13so11944374pab.1; Sat, 25 Jun 2016 14:38:49 -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=zsuwfIkb05K5ISH8x8PXTLqb0NfX9b4EnlLQwYaGC6o=; b=oyGEtl62sBu7Xrzmdz8z0p0JIs1gBOMp6j3uxb14ZdE6CBR4Z/JMEQVcTQXLNqcJSx dds9UQ7bRXmAut2ydXyCT1PSiBQAZXiCteAFvlROI6PCwN54/WsB/VnO3c5GdvwHSWmz q5uYKdcGwUTHEhUuGb/hnmNBHMWZ23mmASGMQ82fkoJ4MQUS9T/ywgxz6vPtNhRSCMYW aV+xVjWJVT8EJ7xg+f+9SoeE/Caq19q8sX4Hw85N8aPGDyf5REjePr0fRyJV/vZRnmSY /yEAzx9Dw78vUZopv/uUDaLtHSxBLUwhzYpZ5Q3VoqGsxSL9O7kCyyiMqyEcRf7E70ZL p8Zw== 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=zsuwfIkb05K5ISH8x8PXTLqb0NfX9b4EnlLQwYaGC6o=; b=H9amMGg7wOK2bqSs7PrMZyM/3qFbhGqAwwsn9cRzn+3C+Rt3XyscvPABuTpHbjhfyW Us1sIf7vmqUAIfDGUtle35Db07ndhsccXH9lsQKV9EhuXFlpSceoXoiklM5/dPiozbxV OTB6e6Yhxe9/jTNpLHRWHpcvIndDzaeF9LrJ3KL8Lo/9Ta/EZdFgweDZ6RPAkcrsusAD NpHuw0O2+zBSG2ZTqiRW166oCjl8xYxsrizPrGdmNcSKOxMO1m8jBySAMit4FxMbLh6K g27ik9Z+7dfSEXu/J0UDusDMnXx8sb1URSwMY84o8FUjqI7tnYlVHf9jQUz+I6GME/BI XoGA== X-Gm-Message-State: ALyK8tIoD63iPfjTRghzOX2ZFzHn4XYu8vK7TQ9hzXrveEwadVMNo7oV2YjIdFhLrSR0nA== X-Received: by 10.66.171.173 with SMTP id av13mr19864824pac.117.1466890728991; Sat, 25 Jun 2016 14:38:48 -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 m8sm1861308pfi.27.2016.06.25.14.38.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Jun 2016 14:38:48 -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 v3 24/24] time: Delete CURRENT_TIME_SEC Date: Sat, 25 Jun 2016 14:37:48 -0700 Message-Id: <1466890668-23400-25-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466890668-23400-1-git-send-email-deepa.kernel@gmail.com> References: <1466890668-23400-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 CURRENT_TIME_SEC macro have been replaced by other time functions. This macro is 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/time.h b/include/linux/time.h index 4cea09d..9c3f345 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -152,7 +152,6 @@ static inline bool timespec_inject_offset_valid(const struct timespec *ts) } #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