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 <behlendorf1@llnl.gov>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Closes #10741
(cherry picked from commit 772c69d230)
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
This commit is contained in:
Pavel Snajdr 2020-08-20 06:37:38 +02:00 committed by Tony Hutter
parent c33b623535
commit f6e54ea4f5

View File

@ -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>