]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - zfs/config/kernel-open-bdev-exclusive.m4
media: dvb_ca_en50221: prevent using slot_info for Spectre attacs
[mirror_ubuntu-bionic-kernel.git] / zfs / config / kernel-open-bdev-exclusive.m4
CommitLineData
70e083d2
TG
1dnl #
2dnl # 2.6.28 API change
3dnl # open/close_bdev_excl() renamed to open/close_bdev_exclusive()
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_OPEN_BDEV_EXCLUSIVE],
6 [AC_MSG_CHECKING([whether open_bdev_exclusive() is available])
7 ZFS_LINUX_TRY_COMPILE_SYMBOL([
8 #include <linux/fs.h>
9 ], [
10 open_bdev_exclusive(NULL, 0, NULL);
11 ], [open_bdev_exclusive], [fs/block_dev.c], [
12 AC_MSG_RESULT(yes)
13 AC_DEFINE(HAVE_OPEN_BDEV_EXCLUSIVE, 1,
14 [open_bdev_exclusive() is available])
15 ], [
16 AC_MSG_RESULT(no)
17 ])
18])