History

y2038: remove CONFIG_64BIT_TIME

The CONFIG_64BIT_TIME option is defined on all architectures, and can be removed for simplicity now.

Arnd Bergmann committed 7 years ago

Commit 3ca47e91 parent a99d8086 files · +6 −14Browse files

Unified · Split

6 files
  1. arch/Kconfig +0 −8
  2. fs/aio.c +1 −1
  3. ipc/syscall.c +1 −1
  4. kernel/time/hrtimer.c +1 −1
  5. kernel/time/time.c +2 −2
  6. net/socket.c +1 −1
arch/Kconfig+0−8
@@ -796,14 +796,6 @@ config OLD_SIGACTION · 795 unmodified lines
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
@@ -2056,7 +2056,7 @@ static long do_io_getevents(aio_context_t ctx_id, · 2055 unmodified lines
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
@@ -30,7 +30,7 @@ int ksys_ipc(unsigned int call, int first, unsigned long second, · 29 unmodified lines
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
@@ -1940,7 +1940,7 @@ out: · 1939 unmodified lines
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
@@ -267,7 +267,7 @@ COMPAT_SYSCALL_DEFINE2(settimeofday, struct old_timeval32 __user *, tv, · 266 unmodified lines
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, · 607 unmodified lines
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
@@ -2833,7 +2833,7 @@ SYSCALL_DEFINE2(socketcall, int, call, unsigned long __user *, args) · 2832 unmodified lines
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],

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t