diff options
author | Pavel Snajdr <[email protected]> | 2020-08-20 06:37:38 +0200 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2020-09-15 21:16:58 +0000 |
commit | f6e54ea4f552916c5c53f97999f5bf7ebdcb22e0 (patch) | |
tree | d1dd9f5bc56036f756b659d9ea9e65e8b9da1ae3 /include | |
parent | c33b623535441a6e34078d62c47b244354c0d486 (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
(cherry picked from commit 772c69d230b34bab1aaab800b1f95010e237862f)
Signed-off-by: Eli Schwartz <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/spl/sys/mutex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spl/sys/mutex.h b/include/spl/sys/mutex.h index 73da23685..93f3af8fe 100644 --- a/include/spl/sys/mutex.h +++ b/include/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> |