diff options
author | Tim Chase <[email protected]> | 2016-08-01 08:19:19 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-08-01 12:45:08 -0700 |
commit | 576865be20ce4a0d4365cd62a589edec070fe08c (patch) | |
tree | 30f48499eebc50670892deed30f0f7670c77895e | |
parent | 4b9dddf43084306de34394d666b874b912ca42ca (diff) |
Fix HAVE_MUTEX_OWNER test for kernels prior to 4.6
Recent 4.X kernels prior to 4.6 require #include of spinlock.h in
order to get the definition of __ARCH_SPIN_LOCK_UNLOCKED which is
used by DEFINE_MUTEX().
Signed-off-by: Tim Chase <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #566
-rw-r--r-- | config/spl-build.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 3ed0e8fd0..94e692a8b 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -1537,6 +1537,7 @@ AC_DEFUN([SPL_AC_MUTEX_OWNER], [ EXTRA_KCFLAGS="-Werror" SPL_LINUX_TRY_COMPILE([ #include <linux/mutex.h> + #include <linux/spinlock.h> ],[ DEFINE_MUTEX(m); struct task_struct *t __attribute__ ((unused)); |