Commit 693737b6 authored by Arnd Bergmann's avatar Arnd Bergmann

y2038: make ns_to_compat_timeval use __kernel_old_timeval

This gets us one step closer to removing 'struct timeval' from the
kernel. We still keep __kernel_old_timeval for interfaces that we cannot
fix otherwise, and ns_to_compat_timeval() is provably safe for interfaces
that are legitimate users of __kernel_old_timeval on native kernels,
so this is an obvious change.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent df1b4ba9
...@@ -937,10 +937,10 @@ static inline bool in_compat_syscall(void) { return is_compat_task(); } ...@@ -937,10 +937,10 @@ static inline bool in_compat_syscall(void) { return is_compat_task(); }
*/ */
static inline struct old_timeval32 ns_to_old_timeval32(s64 nsec) static inline struct old_timeval32 ns_to_old_timeval32(s64 nsec)
{ {
struct timeval tv; struct __kernel_old_timeval tv;
struct old_timeval32 ctv; struct old_timeval32 ctv;
tv = ns_to_timeval(nsec); tv = ns_to_kernel_old_timeval(nsec);
ctv.tv_sec = tv.tv_sec; ctv.tv_sec = tv.tv_sec;
ctv.tv_usec = tv.tv_usec; ctv.tv_usec = tv.tv_usec;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment