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
This commit is contained in:
Pavel Snajdr 2020-08-20 06:37:38 +02:00 committed by GitHub
parent f2c027bd6a
commit 772c69d230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#define _SPL_MUTEX_H #define _SPL_MUTEX_H
#include <sys/types.h> #include <sys/types.h>
#include <linux/sched.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/lockdep.h> #include <linux/lockdep.h>
#include <linux/compiler_compat.h> #include <linux/compiler_compat.h>