]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-sget-args.m4
Linux compat: Minimum kernel version 3.10
[FreeBSD/FreeBSD.git] / config / kernel-sget-args.m4
1 dnl #
2 dnl # 3.6 API change,
3 dnl # 'sget' now takes the mount flags as an argument.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_SGET], [
6         ZFS_LINUX_TEST_SRC([sget_5args], [
7                 #include <linux/fs.h>
8         ],[
9                 struct file_system_type *type = NULL;
10                 int (*test)(struct super_block *,void *) = NULL;
11                 int (*set)(struct super_block *,void *) = NULL;
12                 int flags = 0;
13                 void *data = NULL;
14                 (void) sget(type, test, set, flags, data);
15         ])
16 ])
17
18 AC_DEFUN([ZFS_AC_KERNEL_SGET], [
19         AC_MSG_CHECKING([whether sget() wants 5 args])
20         ZFS_LINUX_TEST_RESULT([sget_5args], [
21                 AC_MSG_RESULT(yes)
22         ],[
23                 ZFS_LINUX_TEST_ERROR([sget()])
24         ])
25 ])