fix: missing include for 'task_struct' in fdtable.h
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 19 Jan 2021 16:34:25 +0000 (11:34 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 16 Feb 2021 20:11:54 +0000 (15:11 -0500)
In some kernel versions, linux/fdtable.h dereferences a pointer in a
forward declared 'struct task_struct' without an include of 'linux/sched.h'.

Add this missing include to the wrapper.

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

wrapper/fdtable.h

index 86a6a079a507026f3162d7322ba979bc232e93c3..d768c10f6251b860c0ad3866820f17259f62b6a2 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <lttng-kernel-version.h>
 #include <linux/fdtable.h>
+#include <linux/sched.h>
 
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
 static inline
This page took 0.025693 seconds and 4 git commands to generate.