Verify parent_dev before calling udev_device_get_sysattr_value
[zfs.git] / config / kernel-mm-page-flags.m4
blobb1277118305dcfc21c14be03e2ba216b4eb9062a
1 AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_FLAG_ERROR], [
2         ZFS_LINUX_TEST_SRC([mm_page_flag_error], [
3                 #include <linux/page-flags.h>
5                 static enum pageflags
6                     test_flag __attribute__((unused)) = PG_error;
7         ])
8 ])
9 AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_FLAG_ERROR], [
10         AC_MSG_CHECKING([whether PG_error flag is available])
11         ZFS_LINUX_TEST_RESULT([mm_page_flag_error], [
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_MM_PAGE_FLAG_ERROR, 1, [PG_error flag is available])
14         ],[
15                 AC_MSG_RESULT(no)
16         ])
19 AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_FLAGS], [
20         ZFS_AC_KERNEL_SRC_MM_PAGE_FLAG_ERROR
22 AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_FLAGS], [
23         ZFS_AC_KERNEL_MM_PAGE_FLAG_ERROR