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 17:21:09 +0000 (12:21 -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: I06a6a9f7efd456843d1e4fdcc9003b839d7f3329

include/wrapper/fdtable.h

index 559a1dcea073a034ee277e170db62a259c8b94d0..8f01a194a7b5131e152b342441b0d258924fa56f 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.026173 seconds and 5 git commands to generate.