2022-04-19 20:38:04 +03:00
|
|
|
dnl #
|
|
|
|
dnl # 5.17 API change,
|
|
|
|
dnl #
|
|
|
|
dnl # GENHD_FL_EXT_DEVT flag removed
|
|
|
|
dnl # GENHD_FL_NO_PART_SCAN renamed GENHD_FL_NO_PART
|
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_GENHD_FLAGS], [
|
|
|
|
|
|
|
|
ZFS_LINUX_TEST_SRC([genhd_fl_ext_devt], [
|
|
|
|
#include <linux/blkdev.h>
|
|
|
|
], [
|
|
|
|
int flags __attribute__ ((unused)) = GENHD_FL_EXT_DEVT;
|
|
|
|
])
|
|
|
|
|
|
|
|
ZFS_LINUX_TEST_SRC([genhd_fl_no_part], [
|
|
|
|
#include <linux/blkdev.h>
|
|
|
|
], [
|
|
|
|
int flags __attribute__ ((unused)) = GENHD_FL_NO_PART;
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_GENHD_FLAGS], [
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether GENHD_FL_EXT_DEVT flag is available])
|
|
|
|
ZFS_LINUX_TEST_RESULT([genhd_fl_ext_devt], [
|
|
|
|
AC_MSG_RESULT(yes)
|
2024-08-24 15:06:22 +03:00
|
|
|
AC_DEFINE(HAVE_GENHD_FL_EXT_DEVT, 1,
|
2022-04-19 20:38:04 +03:00
|
|
|
[GENHD_FL_EXT_DEVT flag is available])
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether GENHD_FL_NO_PART flag is available])
|
|
|
|
ZFS_LINUX_TEST_RESULT([genhd_fl_no_part], [
|
|
|
|
AC_MSG_RESULT(yes)
|
2024-08-24 15:06:22 +03:00
|
|
|
AC_DEFINE(HAVE_GENHD_FL_NO_PART, 1,
|
2022-04-19 20:38:04 +03:00
|
|
|
[GENHD_FL_NO_PART flag is available])
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
])
|