fix: y2038: hide timeval/timespec/itimerval/itimerspec types (v5.6)
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 24 Feb 2020 20:11:03 +0000 (15:11 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 24 Feb 2020 21:52:25 +0000 (16:52 -0500)
See upstream commit:

  commit c766d1472c70d25ad475cf56042af1652e792b23
  Author: Arnd Bergmann <arnd@arndb.de>
  Date:   Thu Feb 20 20:03:57 2020 -0800

    y2038: hide timeval/timespec/itimerval/itimerspec types

    There are no in-kernel users remaining, but there may still be users that
    include linux/time.h instead of sys/time.h from user space, so leave the
    types available to user space while hiding them from kernel space.

    Only the __kernel_old_* versions of these types remain now.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I986a813ad8b1c753ab1fa07f726b0cc481f049cb

lttng-syscalls.c

index f6d4187806c1bfa90567450c72ef870ab43c4b3f..b8a3eac4bcaecb349ba09ae5f0da447b7116df0b 100644 (file)
@@ -90,6 +90,13 @@ struct user_msghdr;
  * Forward declaration for kernels >= 5.6
  */
 struct timex;
+struct timeval;
+struct itimerval;
+struct itimerspec;
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0))
+typedef __kernel_old_time_t time_t;
+#endif
 
 #ifdef IA32_NR_syscalls
 #define NR_compat_syscalls IA32_NR_syscalls
This page took 0.029659 seconds and 4 git commands to generate.