xref: /src/sys/contrib/openzfs/config/kernel-sget-args.m4 (revision 8a62a2a5659d1839d8799b4274c04469d7f17c78)
1dnl # SPDX-License-Identifier: CDDL-1.0
2dnl #
3dnl # 3.6 API change,
4dnl # 'sget' now takes the mount flags as an argument.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_SRC_SGET], [
7	ZFS_LINUX_TEST_SRC([sget_5args], [
8		#include <linux/fs.h>
9	],[
10		struct file_system_type *type = NULL;
11		int (*test)(struct super_block *,void *) = NULL;
12		int (*set)(struct super_block *,void *) = NULL;
13		int flags = 0;
14		void *data = NULL;
15		(void) sget(type, test, set, flags, data);
16	])
17])
18
19AC_DEFUN([ZFS_AC_KERNEL_SGET], [
20	AC_MSG_CHECKING([whether sget() wants 5 args])
21	ZFS_LINUX_TEST_RESULT([sget_5args], [
22		AC_MSG_RESULT(yes)
23	],[
24		ZFS_LINUX_TEST_ERROR([sget()])
25	])
26])
27