From: Michael Jeanson Date: Tue, 19 Jan 2021 16:34:25 +0000 (-0500) Subject: fix: missing include for 'task_struct' in fdtable.h X-Git-Tag: v2.11.8~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f7eac69900717090c7b955dd4808a2c08564b7ac;p=lttng-modules.git fix: missing include for 'task_struct' in fdtable.h 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 Signed-off-by: Mathieu Desnoyers Change-Id: Ib3a613a2d820738c1e741aa9e7c38b61771d35a3 --- diff --git a/wrapper/fdtable.h b/wrapper/fdtable.h index ccd57e0b..7dccd3c3 100644 --- a/wrapper/fdtable.h +++ b/wrapper/fdtable.h @@ -10,6 +10,7 @@ #include #include +#include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) static inline