4 dnl # GENHD_FL_EXT_DEVT flag removed
5 dnl # GENHD_FL_NO_PART_SCAN renamed GENHD_FL_NO_PART
7 AC_DEFUN([ZFS_AC_KERNEL_SRC_GENHD_FLAGS], [
9 ZFS_LINUX_TEST_SRC([genhd_fl_ext_devt], [
10 #include <linux/blkdev.h>
12 int flags __attribute__ ((unused)) = GENHD_FL_EXT_DEVT;
15 ZFS_LINUX_TEST_SRC([genhd_fl_no_part], [
16 #include <linux/blkdev.h>
18 int flags __attribute__ ((unused)) = GENHD_FL_NO_PART;
22 AC_DEFUN([ZFS_AC_KERNEL_GENHD_FLAGS], [
24 AC_MSG_CHECKING([whether GENHD_FL_EXT_DEVT flag is available])
25 ZFS_LINUX_TEST_RESULT([genhd_fl_ext_devt], [
27 AC_DEFINE(HAVE_GENHD_FL_EXT_DEVT, 1,
28 [GENHD_FL_EXT_DEVT flag is available])
33 AC_MSG_CHECKING([whether GENHD_FL_NO_PART flag is available])
34 ZFS_LINUX_TEST_RESULT([genhd_fl_no_part], [
36 AC_DEFINE(HAVE_GENHD_FL_NO_PART, 1,
37 [GENHD_FL_NO_PART flag is available])