2 dnl # 2.6.37 API change
3 dnl # Added 3rd argument for the active holder, previously this was
4 dnl # hardcoded to NULL.
6 AC_DEFUN([ZFS_AC_KERNEL_3ARG_BLKDEV_GET], [
7 AC_MSG_CHECKING([whether blkdev_get() wants 3 args])
8 ZFS_LINUX_TRY_COMPILE([
11 struct block_device *bdev = NULL;
12 (void) blkdev_get(bdev, 0, NULL);
15 AC_DEFINE(HAVE_3ARG_BLKDEV_GET, 1, [blkdev_get() wants 3 args])