From: akpm@linux-foundation.org Subject: [patch 100/114] time: delete CURRENT_TIME_SEC and CURRENT_TIME Date: Mon, 08 May 2017 15:59:37 -0700 Message-ID: <20170508225937.8ekqxypCz%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:47524 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752367AbdEHW7i (ORCPT ); Mon, 8 May 2017 18:59:38 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: akpm@linux-foundation.org, arnd@arndb.de, deepa.kernel@gmail.com, john.stultz@linaro.org, mm-commits@vger.kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org From: Deepa Dinamani Subject: time: delete CURRENT_TIME_SEC and CURRENT_TIME 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. Link: http://lkml.kernel.org/r/1491613030-11599-12-git-send-email-deepa.kernel@gmail.com Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Acked-by: John Stultz Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- include/linux/time.h | 3 --- 1 file changed, 3 deletions(-) diff -puN include/linux/time.h~time-delete-current_time_sec-and-current_time include/linux/time.h --- a/include/linux/time.h~time-delete-current_time_sec-and-current_time +++ a/include/linux/time.h @@ -151,9 +151,6 @@ static inline bool timespec_inject_offse return true; } -#define CURRENT_TIME (current_kernel_time()) -#define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 })