From abb642b9a971e6c1a15816f9332da89eaebac9c1 Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Sun, 22 Mar 2015 21:43:21 -0500 Subject: [PATCH] Set HAVE_FS_STRUCT_SPINLOCK correctly when CONFIG_FRAME_WARN==1024 If kernel lock debugging is enabled, the fs_struct structure exceeds the typical 1024 byte limit of CONFIG_FRAME_WARN and isn't enabled when it otherwise should be. Signed-off-by: Brian Behlendorf Signed-off-by: Tim Chase Closes #440 --- config/spl-build.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 4b55809ce09d..82fbea0c352b 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -1033,7 +1033,7 @@ AC_DEFUN([SPL_AC_FS_STRUCT_SPINLOCK], [ #include #include ],[ - struct fs_struct fs; + static struct fs_struct fs; spin_lock_init(&fs.lock); ],[ AC_MSG_RESULT(yes)