]> git.proxmox.com Git - mirror_zfs.git/blame - 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
CommitLineData
17888ae3
CC
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 #
608f8749
BB
6AC_DEFUN([ZFS_AC_KERNEL_SRC_KMAP_ATOMIC_ARGS], [
7 ZFS_LINUX_TEST_SRC([kmap_atomic], [
17888ae3
CC
8 #include <linux/pagemap.h>
9 ],[
10 struct page page;
11 kmap_atomic(&page);
608f8749
BB
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], [
17888ae3 18 AC_MSG_RESULT(yes)
17888ae3 19 ],[
066e8252 20 ZFS_LINUX_TEST_ERROR([kmap_atomic()])
17888ae3
CC
21 ])
22])