]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-inode-set-iversion.m4
ztest: use ASSERT3P to compare pointers
[FreeBSD/FreeBSD.git] / config / kernel-inode-set-iversion.m4
1 dnl #
2 dnl # 4.16 API change
3 dnl # inode_set_iversion introduced to set i_version
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_SET_IVERSION], [
6         ZFS_LINUX_TEST_SRC([inode_set_iversion], [
7                 #include <linux/iversion.h>
8         ],[
9                 struct inode inode;
10                 inode_set_iversion(&inode, 1);
11         ])
12 ])
13
14 AC_DEFUN([ZFS_AC_KERNEL_INODE_SET_IVERSION], [
15         AC_MSG_CHECKING([whether inode_set_iversion() exists])
16         ZFS_LINUX_TEST_RESULT([inode_set_iversion], [
17                 AC_MSG_RESULT(yes)
18                 AC_DEFINE(HAVE_INODE_SET_IVERSION, 1,
19                     [inode_set_iversion() exists])
20         ],[
21                 AC_MSG_RESULT(no)
22         ])
23 ])