Tag 2.2.0-rc4
[zfs.git] / config / kernel-kmap-atomic-args.m4
blob1172505afc6832471254608ef9313b03ff5db9f8
1 dnl #
2 dnl # 2.6.37 API change
3 dnl # kmap_atomic changed from assigning hard-coded named slot to using
4 dnl # push/pop based dynamical allocation.
5 dnl #
6 AC_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         ])
15 AC_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         ])