xref: /freebsd/sys/contrib/openzfs/config/kernel-mm-page-flags.m4 (revision 7a7741af18d6c8a804cc643cb7ecda9d730c6aa6)
1AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_FLAG_ERROR], [
2	ZFS_LINUX_TEST_SRC([mm_page_flag_error], [
3		#include <linux/page-flags.h>
4
5		static enum pageflags
6		    test_flag __attribute__((unused)) = PG_error;
7	])
8])
9AC_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	])
17])
18
19AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_FLAGS], [
20	ZFS_AC_KERNEL_SRC_MM_PAGE_FLAG_ERROR
21])
22AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_FLAGS], [
23	ZFS_AC_KERNEL_MM_PAGE_FLAG_ERROR
24])
25