]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-kmap-atomic-args.m4
pyzfs: python3 support (build system)
[FreeBSD/FreeBSD.git] / config / kernel-kmap-atomic-args.m4
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         ])
20 ])