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;
21 ZFS_LINUX_TEST_SRC([genhd_fl_no_part_scan], [
22 #include <linux/blkdev.h>
24 int flags __attribute__ ((unused)) = GENHD_FL_NO_PART_SCAN;
28 AC_DEFUN([ZFS_AC_KERNEL_GENHD_FLAGS], [
30 AC_MSG_CHECKING([whether GENHD_FL_EXT_DEVT flag is available])
31 ZFS_LINUX_TEST_RESULT([genhd_fl_ext_devt], [
33 AC_DEFINE(ZFS_GENHD_FL_EXT_DEVT, GENHD_FL_EXT_DEVT,
34 [GENHD_FL_EXT_DEVT flag is available])
37 AC_DEFINE(ZFS_GENHD_FL_EXT_DEVT, 0,
38 [GENHD_FL_EXT_DEVT flag is not available])
41 AC_MSG_CHECKING([whether GENHD_FL_NO_PART flag is available])
42 ZFS_LINUX_TEST_RESULT([genhd_fl_no_part], [
44 AC_DEFINE(ZFS_GENHD_FL_NO_PART, GENHD_FL_NO_PART,
45 [GENHD_FL_NO_PART flag is available])
49 AC_MSG_CHECKING([whether GENHD_FL_NO_PART_SCAN flag is available])
50 ZFS_LINUX_TEST_RESULT([genhd_fl_no_part_scan], [
52 AC_DEFINE(ZFS_GENHD_FL_NO_PART, GENHD_FL_NO_PART_SCAN,
53 [GENHD_FL_NO_PART_SCAN flag is available])
55 ZFS_LINUX_TEST_ERROR([GENHD_FL_NO_PART|GENHD_FL_NO_PART_SCAN])