Thread (4 messages) 4 messages, 3 authors, 2018-07-12

Re: [PATCH v3 7/7] timex: change syscalls to use struct __kernel_timex

From: Christoph Hellwig <hch@infradead.org>
Date: 2018-07-12 08:30:01
Also in: lkml

On Fri, Jul 06, 2018 at 10:42:47PM -0700, Deepa Dinamani wrote:
struct timex is not y2038 safe.
Switch all the syscall apis to use y2038 safe __kernel_timex.
So you switch existing syscalls to use a different structure.
If this actually happens to be safe it needs a big explanation
in the commit log.
quoted hunk ↗ jump to hunk
-#ifdef CONFIG_COMPAT
-
 COMPAT_SYSCALL_DEFINE2(clock_adjtime, clockid_t, which_clock,
 		       struct compat_timex __user *, utp)
 {
@@ -1187,10 +1183,6 @@ COMPAT_SYSCALL_DEFINE2(clock_adjtime, clockid_t, which_clock,
 	return err;
 }
 
-#endif
And this unconditionally defines clock_adjtime, but doesn't actually
seem to add callers, which looks rather odd.  Same for other bits
in the patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help