ZTS: Fix io_uring support check
[zfs.git] / config / kernel-generic_readlink.m4
bloba7a33b408abd404d593ab8e17a6614d6f63db31e
1 dnl #
2 dnl # 4.10 API
3 dnl #
4 dnl # NULL inode_operations.readlink implies generic_readlink(), which
5 dnl # has been made static.
6 dnl #
7 AC_DEFUN([ZFS_AC_KERNEL_SRC_GENERIC_READLINK_GLOBAL], [
8         ZFS_LINUX_TEST_SRC([generic_readlink_global], [
9                 #include <linux/fs.h>
10         ],[
11                 int i __attribute__ ((unused));
12                 i = generic_readlink(NULL, NULL, 0);
13         ])
16 AC_DEFUN([ZFS_AC_KERNEL_GENERIC_READLINK_GLOBAL], [
17         AC_MSG_CHECKING([whether generic_readlink is global])
18         ZFS_LINUX_TEST_RESULT([generic_readlink_global], [
19                 AC_MSG_RESULT([yes])
20                 AC_DEFINE(HAVE_GENERIC_READLINK, 1,
21                     [generic_readlink is global])
22         ],[
23                 AC_MSG_RESULT([no])
24         ])