]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-kmap-atomic-args.m4
Linux 6.9 compat: bdev handles are now struct file
[mirror_zfs.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_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
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 ])
22 ])