timekeeping: remove unused get_seconds()
PATCH 1/1 timekeeping: remove unused get_seconds()
From: Chunguang Xu <[email protected]>
The get_seconds() cleanup seems to have been completed, now it is time to delete the legacy interface to avoid misuse later.
Signed-off-by Chunguang Xu <[email protected]>
--- include/linux/ktime.h | 1 - include/linux/timekeeping32.h | 14 -------------- kernel/time/timekeeping.c | 3 +-- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 include/linux/timekeeping32.h
include/linux/ktime.h +0 -1
@@ -230,6 +230,5 @@ static inline ktime_t ms_to_ktime(u64 ms) }# include <linux/timekeeping.h> -# include <linux/timekeeping32.h> #endif
include/linux/timekeeping32.h deleted +0 -14
@@ -1,14 +0,0 @@ -#ifndef _LINUX_TIMEKEEPING32_H -#define _LINUX_TIMEKEEPING32_H -/* -* These interfaces are all based on the old timespec type -* and should get replaced with the timespec64 based versions -* over time so we can remove the file here. -*/ - -static inline unsigned long get_seconds (void ) -{ -return ktime_get_real_seconds (); -} - -#endif
kernel/time/timekeeping.c +1 -2
@@ -995,8 +995,7 @@ time64_t ktime_get_seconds(void)/** * ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME * -* Returns the wall clock seconds since 1970. This replaces the -* get_seconds() interface which is not y2038 safe on 32bit systems. +* Returns the wall clock seconds since 1970. * * For 64bit systems the fast access to tk->xtime_sec is preserved. On * 32bit systems the access must be protected with the sequence
Signature · 1 line
1.8.3.1
[tip: timers/urgent] timekeeping: Remove unused get_seconds()
The following commit has been merged into the timers/urgent branch of tip:
The following commit has been merged into the timers/urgent branch of tip:
Commit-ID: aba428a0c612bb259891307da12e22efd0fab14c Gitweb: https://git.kernel.org/tip/aba428a0c612bb259891307da12e22efd0fab14c Author: Chunguang Xu <[email protected]> AuthorDate: Tue, 01 Dec 2020 17:52:31 +08:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 12 Jan 2021 21:13:01 +01:00
timekeeping: Remove unused get_seconds()
The get_seconds() cleanup seems to have been completed, now it is time to delete the legacy interface to avoid misuse later.
Signed-off-by Chunguang Xu <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- include/linux/ktime.h | 1 - include/linux/timekeeping32.h | 14 -------------- kernel/time/timekeeping.c | 3 +-- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 include/linux/timekeeping32.h
include/linux/ktime.h +0 -1
@@ -230,6 +230,5 @@ static inline ktime_t ms_to_ktime(u64 ms) }# include <linux/timekeeping.h> -# include <linux/timekeeping32.h> #endif
include/linux/timekeeping32.h deleted +0 -14
@@ -1,14 +0,0 @@ -#ifndef _LINUX_TIMEKEEPING32_H -#define _LINUX_TIMEKEEPING32_H -/* -* These interfaces are all based on the old timespec type -* and should get replaced with the timespec64 based versions -* over time so we can remove the file here. -*/ - -static inline unsigned long get_seconds (void ) -{ -return ktime_get_real_seconds (); -} - -#endif
kernel/time/timekeeping.c +1 -2
@@ -991,8 +991,7 @@ EXPORT_SYMBOL_GPL(ktime_get_seconds);/** * ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME * -* Returns the wall clock seconds since 1970. This replaces the -* get_seconds() interface which is not y2038 safe on 32bit systems. +* Returns the wall clock seconds since 1970. * * For 64bit systems the fast access to tk->xtime_sec is preserved. On * 32bit systems the access must be protected with the sequence