xref: /freebsd/sys/contrib/openzfs/config/kernel-kmap-atomic-args.m4 (revision 9e5787d2284e187abb5b654d924394a65772e004)
1dnl #
2dnl # 2.6.37 API change
3dnl # kmap_atomic changed from assigning hard-coded named slot to using
4dnl # push/pop based dynamical allocation.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_SRC_KMAP_ATOMIC_ARGS], [
7	ZFS_LINUX_TEST_SRC([kmap_atomic], [
8		#include <linux/pagemap.h>
9	],[
10		struct page page;
11		kmap_atomic(&page);
12	])
13])
14
15AC_DEFUN([ZFS_AC_KERNEL_KMAP_ATOMIC_ARGS], [
16	AC_MSG_CHECKING([whether kmap_atomic wants 1 args])
17	ZFS_LINUX_TEST_RESULT([kmap_atomic], [
18		AC_MSG_RESULT(yes)
19	],[
20		ZFS_LINUX_TEST_ERROR([kmap_atomic()])
21	])
22])
23