]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - config/kernel-bdev-block-device-operations.m4
Add '--with-spl-timeout' option
[mirror_zfs-debian.git] / config / kernel-bdev-block-device-operations.m4
index daf14f0f9ea3b1655c4707d385426f8b012baa69..2805237aa9b376e1896a24a4c70391417e3f44ae 100644 (file)
@@ -3,6 +3,8 @@ dnl # 2.6.x API change
 dnl #
 AC_DEFUN([ZFS_AC_KERNEL_BDEV_BLOCK_DEVICE_OPERATIONS], [
        AC_MSG_CHECKING([block device operation prototypes])
+       tmp_flags="$EXTRA_KCFLAGS"
+       EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
        ZFS_LINUX_TRY_COMPILE([
                #include <linux/blkdev.h>
        ],[
@@ -30,4 +32,5 @@ AC_DEFUN([ZFS_AC_KERNEL_BDEV_BLOCK_DEVICE_OPERATIONS], [
        ],[
                AC_MSG_RESULT(struct inode)
        ])
+       EXTRA_KCFLAGS="$tmp_flags"
 ])