Skip to content

Commit 3ca47e9

Browse files
committed
y2038: remove CONFIG_64BIT_TIME
The CONFIG_64BIT_TIME option is defined on all architectures, and can be removed for simplicity now. Signed-off-by: Arnd Bergmann <[email protected]>
1 parent a99d808 commit 3ca47e9

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

arch/Kconfig

-8
Original file line numberDiff line numberDiff line change
@@ -796,14 +796,6 @@ config OLD_SIGACTION
796796
config COMPAT_OLD_SIGACTION
797797
bool
798798

799-
config 64BIT_TIME
800-
def_bool y
801-
help
802-
This should be selected by all architectures that need to support
803-
new system calls with a 64-bit time_t. This is relevant on all 32-bit
804-
architectures, and 64-bit architectures as part of compat syscall
805-
handling.
806-
807799
config COMPAT_32BIT_TIME
808800
def_bool !64BIT || COMPAT
809801
help

fs/aio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ static long do_io_getevents(aio_context_t ctx_id,
20562056
* specifies an infinite timeout. Note that the timeout pointed to by
20572057
* timeout is relative. Will fail with -ENOSYS if not implemented.
20582058
*/
2059-
#if !defined(CONFIG_64BIT_TIME) || defined(CONFIG_64BIT)
2059+
#ifdef CONFIG_64BIT
20602060

20612061
SYSCALL_DEFINE5(io_getevents, aio_context_t, ctx_id,
20622062
long, min_nr,

ipc/syscall.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int ksys_ipc(unsigned int call, int first, unsigned long second,
3030
return ksys_semtimedop(first, (struct sembuf __user *)ptr,
3131
second, NULL);
3232
case SEMTIMEDOP:
33-
if (IS_ENABLED(CONFIG_64BIT) || !IS_ENABLED(CONFIG_64BIT_TIME))
33+
if (IS_ENABLED(CONFIG_64BIT))
3434
return ksys_semtimedop(first, ptr, second,
3535
(const struct __kernel_timespec __user *)fifth);
3636
else if (IS_ENABLED(CONFIG_COMPAT_32BIT_TIME))

kernel/time/hrtimer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ long hrtimer_nanosleep(const struct timespec64 *rqtp,
19401940
return ret;
19411941
}
19421942

1943-
#if !defined(CONFIG_64BIT_TIME) || defined(CONFIG_64BIT)
1943+
#ifdef CONFIG_64BIT
19441944

19451945
SYSCALL_DEFINE2(nanosleep, struct __kernel_timespec __user *, rqtp,
19461946
struct __kernel_timespec __user *, rmtp)

kernel/time/time.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ COMPAT_SYSCALL_DEFINE2(settimeofday, struct old_timeval32 __user *, tv,
267267
}
268268
#endif
269269

270-
#if !defined(CONFIG_64BIT_TIME) || defined(CONFIG_64BIT)
270+
#ifdef CONFIG_64BIT
271271
SYSCALL_DEFINE1(adjtimex, struct __kernel_timex __user *, txc_p)
272272
{
273273
struct __kernel_timex txc; /* Local copy of parameter */
@@ -881,7 +881,7 @@ int get_timespec64(struct timespec64 *ts,
881881
ts->tv_sec = kts.tv_sec;
882882

883883
/* Zero out the padding for 32 bit systems or in compat mode */
884-
if (IS_ENABLED(CONFIG_64BIT_TIME) && in_compat_syscall())
884+
if (in_compat_syscall())
885885
kts.tv_nsec &= 0xFFFFFFFFUL;
886886

887887
ts->tv_nsec = kts.tv_nsec;

net/socket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2833,7 +2833,7 @@ SYSCALL_DEFINE2(socketcall, int, call, unsigned long __user *, args)
28332833
a[2], true);
28342834
break;
28352835
case SYS_RECVMMSG:
2836-
if (IS_ENABLED(CONFIG_64BIT) || !IS_ENABLED(CONFIG_64BIT_TIME))
2836+
if (IS_ENABLED(CONFIG_64BIT))
28372837
err = __sys_recvmmsg(a0, (struct mmsghdr __user *)a1,
28382838
a[2], a[3],
28392839
(struct __kernel_timespec __user *)a[4],

0 commit comments

Comments
 (0)