From 302f31ffc7586de8537e5570e7a77c839f09ad75 Mon Sep 17 00:00:00 2001 From: Chris Dunlop Date: Sun, 9 Aug 2015 22:38:18 +1000 Subject: Linux 4.1 compat: configure bdi_setup_and_register() Pull struct backing_dev_info off the stack: by linux-4.1 it's grown past our 1024 byte stack frame warning limit resulting in an incorrect configure result. Signed-off-by: Brian Behlendorf Signed-off-by: Chris Dunlop Closes #3671 --- config/kernel-bdi-setup-and-register.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/kernel-bdi-setup-and-register.m4 b/config/kernel-bdi-setup-and-register.m4 index 11eefb28b..d1062e17e 100644 --- a/config/kernel-bdi-setup-and-register.m4 +++ b/config/kernel-bdi-setup-and-register.m4 @@ -7,8 +7,8 @@ AC_DEFUN([ZFS_AC_KERNEL_BDI_SETUP_AND_REGISTER], [ AC_MSG_CHECKING([whether bdi_setup_and_register() wants 2 args]) ZFS_LINUX_TRY_COMPILE_SYMBOL([ #include - ], [ struct backing_dev_info bdi; + ], [ char *name = "bdi"; int error __attribute__((unused)) = bdi_setup_and_register(&bdi, name); @@ -21,8 +21,8 @@ AC_DEFUN([ZFS_AC_KERNEL_BDI_SETUP_AND_REGISTER], [ AC_MSG_CHECKING([whether bdi_setup_and_register() wants 3 args]) ZFS_LINUX_TRY_COMPILE_SYMBOL([ #include - ], [ struct backing_dev_info bdi; + ], [ char *name = "bdi"; unsigned int cap = BDI_CAP_MAP_COPY; int error __attribute__((unused)) = -- cgit v1.2.3