y2038: remove unused time32 interfaces
[email protected]
maintainerPATCH 2/15 y2038: remove unused time32 interfaces
From: Arnd Bergmann <[email protected]>
Subject: y2038: remove unused time32 interfaces
No users remain, so kill these off before we grow new ones.
Signed-off-by Arnd Bergmann <[email protected]>
Acked-by Thomas Gleixner <[email protected]>
Cc Deepa Dinamani <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/compat.h | 29 ------ include/linux/time32.h | 154 -------------------------------- include/linux/timekeeping32.h | 32 ------ include/linux/types.h | 5 - kernel/compat.c | 64 ------------- kernel/time/time.c | 43 -------- 6 files changed, 1 insertion(+), 326 deletions(-)
include/linux/compat.h renamed from include/linux/compat.h~y2038-remove-unused-time32-interfaces +0 -29
@@ -248,15 +248,6 @@ typedef struct compat_siginfo { } _sifields; } compat_siginfo_t; -/* -* These functions operate on 32- or 64-bit specs depending on -* COMPAT_USE_64BIT_TIME, hence the void user pointer arguments. -*/ -extern int compat_get_timespec (struct timespec *,const void __user *); -extern int compat_put_timespec (const struct timespec *,void __user *); -extern int compat_get_timeval (struct timeval *,const void __user *); -extern int compat_put_timeval (const struct timeval *,void __user *); -struct compat_iovec {compat_uptr_t iov_base;compat_size_t iov_len;
@@ -416,26 +407,6 @@ int copy_siginfo_to_user32(struct compatint get_compat_sigevent (struct sigevent *event,const struct compat_sigevent __user *u_event); -static inline int old_timeval32_compare (struct old_timeval32 *lhs, -struct old_timeval32 *rhs) -{ -if (lhs->tv_sec < rhs->tv_sec) -return -1 ; -if (lhs->tv_sec > rhs->tv_sec) -return 1 ; -return lhs->tv_usec - rhs->tv_usec; -} - -static inline int old_timespec32_compare (struct old_timespec32 *lhs, -struct old_timespec32 *rhs) -{ -if (lhs->tv_sec < rhs->tv_sec) -return -1 ; -if (lhs->tv_sec > rhs->tv_sec) -return 1 ; -return lhs->tv_nsec - rhs->tv_nsec; -} -extern int get_compat_sigset (sigset_t *set,const compat_sigset_t __user *compat);/*
include/linux/time32.h renamed from include/linux/time32.h~y2038-remove-unused-time32-interfaces +1 -153
171 lines not on this page · raw message
include/linux/timekeeping32.h renamed from include/linux/timekeeping32.h~y2038-remove-unused-time32-interfaces +0 -32
@@ -11,36 +11,4 @@ static inline unsigned long get_seconds( return ktime_get_real_seconds(); } -static inline void getnstimeofday (struct timespec *ts) -{ -struct timespec64 ts64; - -ktime_get_real_ts64 (&ts64); - *ts =timespec64_to_timespec (ts64); -} - -static inline void ktime_get_ts (struct timespec *ts) -{ -struct timespec64 ts64; - -ktime_get_ts64 (&ts64); - *ts =timespec64_to_timespec (ts64); -} - -static inline void getrawmonotonic (struct timespec *ts) -{ -struct timespec64 ts64; - -ktime_get_raw_ts64 (&ts64); - *ts =timespec64_to_timespec (ts64); -} - -static inline void getboottime (struct timespec *ts) -{ -struct timespec64 ts64; - -getboottime64 (&ts64); - *ts =timespec64_to_timespec (ts64); -} -#endif
include/linux/types.h renamed from include/linux/types.h~y2038-remove-unused-time32-interfaces +0 -5
@@ -65,11 +65,6 @@ typedef __kernel_ssize_t ssize_t;typedef __kernel_ptrdiff_t ptrdiff_t ;#endif -#ifndef _TIME_T -#define _TIME_T -typedef __kernel_old_time_t time_t ; -#endif -#ifndef _CLOCK_T#define _CLOCK_Ttypedef __kernel_clock_t clock_t ;
kernel/compat.c renamed from kernel/compat.c~y2038-remove-unused-time32-interfaces +0 -64
70 lines not on this page · raw message
kernel/time/time.c renamed from kernel/time/time.c~y2038-remove-unused-time32-interfaces +0 -42
45 lines not on this page · raw message