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, 19 Jan 2021 20:26:37 +0000 (15:26 -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: Ib3a613a2d820738c1e741aa9e7c38b61771d35a3

wrapper/fdtable.h

index ccd57e0b0ec7c00b887d160d7ae613f2b9a11709..7dccd3c39c2e418d3c5c511c6aa9f901c20abb5f 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/version.h>
 #include <linux/fdtable.h>
+#include <linux/sched.h>
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0))
 static inline
This page took 0.025609 seconds and 4 git commands to generate.