Skip to content

Commit c70a772

Browse files
committed
y2038: remove struct definition redirects
We now use 64-bit time_t on all architectures, so the __kernel_timex, __kernel_timeval and __kernel_timespec redirects can be removed after having served their purpose. This makes it all much less confusing, as the __kernel_* types now always refer to the same layout based on 64-bit time_t across all 32-bit and 64-bit architectures. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 00bf25d commit c70a772

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

include/linux/time64.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
typedef __s64 time64_t;
88
typedef __u64 timeu64_t;
99

10-
/* CONFIG_64BIT_TIME enables new 64 bit time_t syscalls in the compat path
11-
* and 32-bit emulation.
12-
*/
13-
#ifndef CONFIG_64BIT_TIME
14-
#define __kernel_timespec timespec
15-
#define __kernel_itimerspec itimerspec
16-
#endif
17-
1810
#include <uapi/linux/time.h>
1911

2012
struct timespec64 {

include/linux/timex.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@
5353
#ifndef _LINUX_TIMEX_H
5454
#define _LINUX_TIMEX_H
5555

56-
/* CONFIG_64BIT_TIME enables new 64 bit time_t syscalls in the compat path
57-
* and 32-bit emulation.
58-
*/
59-
#ifndef CONFIG_64BIT_TIME
60-
#define __kernel_timex timex
61-
#endif
62-
6356
#include <uapi/linux/timex.h>
6457

6558
#define ADJ_ADJTIME 0x8000 /* switch between adjtime/adjtimex modes */

include/uapi/linux/time.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,15 @@ struct itimerval {
4242
struct timeval it_value; /* current value */
4343
};
4444

45-
#ifndef __kernel_timespec
4645
struct __kernel_timespec {
4746
__kernel_time64_t tv_sec; /* seconds */
4847
long long tv_nsec; /* nanoseconds */
4948
};
50-
#endif
5149

52-
#ifndef __kernel_itimerspec
5350
struct __kernel_itimerspec {
5451
struct __kernel_timespec it_interval; /* timer period */
5552
struct __kernel_timespec it_value; /* timer expiration */
5653
};
57-
#endif
5854

5955
/*
6056
* legacy timeval structure, only embedded in structures that

include/uapi/linux/timex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ struct __kernel_timex_timeval {
9797
long long tv_usec;
9898
};
9999

100-
#ifndef __kernel_timex
101100
struct __kernel_timex {
102101
unsigned int modes; /* mode selector */
103102
int :32; /* pad */
@@ -131,7 +130,6 @@ struct __kernel_timex {
131130
int :32; int :32; int :32; int :32;
132131
int :32; int :32; int :32;
133132
};
134-
#endif
135133

136134
/*
137135
* Mode codes (timex.mode)

0 commit comments

Comments
 (0)