2 dnl # 3.10.x API change
4 AC_DEFUN([ZFS_AC_KERNEL_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID], [
5 AC_MSG_CHECKING([whether block_device_operations.release is void])
6 tmp_flags="$EXTRA_KCFLAGS"
7 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/blkdev.h>
11 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13 static const struct block_device_operations
14 bops __attribute__ ((unused)) = {
16 .release = blk_release,
23 AC_DEFINE(HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID, 1,
24 [struct block_device_operations.release returns void])
28 EXTRA_KCFLAGS="$tmp_flags"