aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Snajdr <[email protected]>2020-08-20 06:37:38 +0200
committerGitHub <[email protected]>2020-08-19 21:37:38 -0700
commit772c69d230b34bab1aaab800b1f95010e237862f (patch)
treecdeebf080bb8a0f5b7aae858998f00ce1d0a9d9d
parentf2c027bd6a003ec5793f8716e6189c389c60f47a (diff)
Linux 5.7 compat: Include linux/sched.h in spl/sys/mutex.h
struct task_struct is needed for lockdep_off() in mutex.h This has popped up after e616cb8daadf (in linux-5.7-rc7). Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Pavel Snajdr <[email protected]> Closes #10741
-rw-r--r--include/os/linux/spl/sys/mutex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/os/linux/spl/sys/mutex.h b/include/os/linux/spl/sys/mutex.h
index 73da23685..93f3af8fe 100644
--- a/include/os/linux/spl/sys/mutex.h
+++ b/include/os/linux/spl/sys/mutex.h
@@ -26,6 +26,7 @@
#define _SPL_MUTEX_H
#include <sys/types.h>
+#include <linux/sched.h>
#include <linux/mutex.h>
#include <linux/lockdep.h>
#include <linux/compiler_compat.h>