Skip to content

Commit 772c69d

Browse files
authored
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
1 parent f2c027b commit 772c69d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/os/linux/spl/sys/mutex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define _SPL_MUTEX_H
2727

2828
#include <sys/types.h>
29+
#include <linux/sched.h>
2930
#include <linux/mutex.h>
3031
#include <linux/lockdep.h>
3132
#include <linux/compiler_compat.h>

0 commit comments

Comments
 (0)