diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2019-02-02 16:34:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-03 20:17:30 +0100 |
commit | 13c6ee2a921683bae4bb4ba57b1f5b82f49e6b8a (patch) | |
tree | 6603af04975126384041dacb4d094d58e6de7b6b /net/socket.c | |
parent | arch: sparc: Override struct __kernel_old_timeval (diff) | |
download | linux-13c6ee2a921683bae4bb4ba57b1f5b82f49e6b8a.tar.xz linux-13c6ee2a921683bae4bb4ba57b1f5b82f49e6b8a.zip |
socket: Use old_timeval types for socket timestamps
As part of y2038 solution, all internal uses of
struct timeval are replaced by struct __kernel_old_timeval
and struct compat_timeval by struct old_timeval32.
Make socket timestamps use these new types.
This is mainly to be able to verify that the kernel build
is y2038 safe when such non y2038 safe types are not
supported anymore.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Cc: isdn@linux-pingi.de
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index 5087f9e40f3a..9cc281cdb9d9 100644 --- a/net/socket.c +++ b/net/socket.c @@ -719,7 +719,7 @@ void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, if (need_software_tstamp) { if (!sock_flag(sk, SOCK_RCVTSTAMPNS)) { - struct timeval tv; + struct __kernel_old_timeval tv; skb_get_timestamp(skb, &tv); put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_OLD, sizeof(tv), &tv); |