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.13.0-rc1~55 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cf41b81e4a59a36acef130dcaf34defd901eb870;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: I06a6a9f7efd456843d1e4fdcc9003b839d7f3329 --- diff --git a/include/wrapper/fdtable.h b/include/wrapper/fdtable.h index 559a1dce..8f01a194 100644 --- a/include/wrapper/fdtable.h +++ b/include/wrapper/fdtable.h @@ -10,6 +10,7 @@ #include #include +#include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) static inline