Files
mirror_zfs/config/kernel-sget-args.m4
T

27 lines
649 B
Plaintext
Raw Normal View History

dnl # SPDX-License-Identifier: CDDL-1.0
2012-10-12 21:40:53 +08:00
dnl #
dnl # 3.6 API change,
dnl # 'sget' now takes the mount flags as an argument.
dnl #
2019-10-01 12:50:34 -07:00
AC_DEFUN([ZFS_AC_KERNEL_SRC_SGET], [
ZFS_LINUX_TEST_SRC([sget_5args], [
2012-10-12 21:40:53 +08:00
#include <linux/fs.h>
],[
struct file_system_type *type = NULL;
int (*test)(struct super_block *,void *) = NULL;
int (*set)(struct super_block *,void *) = NULL;
int flags = 0;
void *data = NULL;
(void) sget(type, test, set, flags, data);
2019-10-01 12:50:34 -07:00
])
])
AC_DEFUN([ZFS_AC_KERNEL_SGET], [
AC_MSG_CHECKING([whether sget() wants 5 args])
ZFS_LINUX_TEST_RESULT([sget_5args], [
2012-10-12 21:40:53 +08:00
AC_MSG_RESULT(yes)
],[
2019-11-12 08:59:06 -08:00
ZFS_LINUX_TEST_ERROR([sget()])
2012-10-12 21:40:53 +08:00
])
])