summaryrefslogtreecommitdiffstats
path: root/config/kernel-bdi.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel-bdi.m4')
-rw-r--r--config/kernel-bdi.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/config/kernel-bdi.m4 b/config/kernel-bdi.m4
index 34ffaabd5..aec7b7347 100644
--- a/config/kernel-bdi.m4
+++ b/config/kernel-bdi.m4
@@ -6,9 +6,12 @@ AC_DEFUN([ZFS_AC_KERNEL_BDI], [
AC_MSG_CHECKING([whether super_block has s_bdi])
ZFS_LINUX_TRY_COMPILE([
#include <linux/fs.h>
+
+ static const struct super_block
+ sb __attribute__ ((unused)) {
+ .s_bdi = NULL,
+ }
],[
- struct super_block sb __attribute__ ((unused));
- sb.s_bdi = NULL;
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_BDI, 1, [struct super_block has s_bdi])