path: root/net/bluetooth
diff options
authorDeepa Dinamani <>2019-02-02 07:34:48 -0800
committerDavid S. Miller <>2019-02-03 11:17:30 -0800
commit13c6ee2a921683bae4bb4ba57b1f5b82f49e6b8a (patch)
tree6603af04975126384041dacb4d094d58e6de7b6b /net/bluetooth
parentbcb3fc3247e5a7ceb467ca0cfdaa4c1b830dd8f9 (diff)
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 <> Acked-by: Willem de Bruijn <> Cc: Signed-off-by: David S. Miller <>
Diffstat (limited to 'net/bluetooth')
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index 1506e1632394..65228bfa4487 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -1383,9 +1383,9 @@ static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg,
if (mask & HCI_CMSG_TSTAMP) {
- struct compat_timeval ctv;
+ struct old_timeval32 ctv;
- struct timeval tv;
+ struct __kernel_old_timeval tv;
void *data;
int len;