Skip to content

Commit

Permalink
Linux 5.7 compat: Include linux/sched.h in spl/sys/mutex.h
Browse files Browse the repository at this point in the history
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 openzfs#10741
  • Loading branch information
snajpa authored and jsai20 committed Mar 30, 2021
1 parent 70cfdb9 commit 9d0536a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/os/linux/spl/sys/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9d0536a

Please sign in to comment.