From: Michael Jeanson Date: Mon, 24 Feb 2020 16:30:22 +0000 (-0500) Subject: fix: 'struct timex' removed upstream (v5.6) X-Git-Tag: before-upstreaming~31 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=9eb15e8baa0dd2961b6a74aeeb9d23602fa5a149 fix: 'struct timex' removed upstream (v5.6) The 'timex' struct was remove in v5.6 and replaced by 2 variants, one that is y2038 compliant and a compat version for 32bit archs. Add this temporary fix while we update our syscalls tracepoint headers, the type of this struct has limited importance since it's only used to record the adress in the trace. Signed-off-by: Michael Jeanson Change-Id: I085b22f282db57985f1c3d341e7c0866cb20e3c9 --- diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 7a2d02a9..6d232d53 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -73,6 +73,11 @@ struct mmap_arg_struct; struct file_handle; struct user_msghdr; +/* + * Forward declaration for kernels >= 5.6 + */ +struct timex; + #ifdef IA32_NR_syscalls #define NR_compat_syscalls IA32_NR_syscalls #else