OpenZFS 4185 - add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R
[zfs.git] / config / kernel-kmap-atomic-args.m4
blobbeb1692e721b05eb805e7bd4b1b0f1f73af4d1fd
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_KMAP_ATOMIC_ARGS], [
7         AC_MSG_CHECKING([whether kmap_atomic wants 1 args])
8         ZFS_LINUX_TRY_COMPILE([
9                 #include <linux/pagemap.h>
10         ],[
11                 struct page page;
12                 kmap_atomic(&page);
13         ],[
14                 AC_MSG_RESULT(yes)
15                 AC_DEFINE(HAVE_1ARG_KMAP_ATOMIC, 1,
16                           [kmap_atomic wants 1 args])
17         ],[
18                 AC_MSG_RESULT(no)
19         ])