]> git.proxmox.com Git - mirror_zfs-debian.git/blame_incremental - config/kernel-invalidate-bdev-args.m4
Merge branch 'add_breaks_replaces_zfs_initramfs' into 'master'
[mirror_zfs-debian.git] / config / kernel-invalidate-bdev-args.m4
... / ...
CommitLineData
1dnl #
2dnl # 2.6.22 API change
3dnl # Unused destroy_dirty_buffers arg removed from prototype.
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_INVALIDATE_BDEV_ARGS], [
6 AC_MSG_CHECKING([whether invalidate_bdev() wants 1 arg])
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/buffer_head.h>
9 ],[
10 struct block_device *bdev = NULL;
11 invalidate_bdev(bdev);
12 ],[
13 AC_MSG_RESULT(yes)
14 AC_DEFINE(HAVE_1ARG_INVALIDATE_BDEV, 1,
15 [invalidate_bdev() wants 1 arg])
16 ],[
17 AC_MSG_RESULT(no)
18 ])
19])