1dnl # SPDX-License-Identifier: CDDL-1.0 2dnl # 3dnl # 6.18 API change 4dnl # ns->ops->type was moved to ns->ns.ns_type (struct ns_common) 5dnl # 6AC_DEFUN([ZFS_AC_KERNEL_SRC_NS_COMMON_TYPE], [ 7 ZFS_LINUX_TEST_SRC([ns_common_type], [ 8 #include <linux/user_namespace.h> 9 ],[ 10 struct user_namespace ns; 11 ns.ns.ns_type = 0; 12 ]) 13]) 14 15AC_DEFUN([ZFS_AC_KERNEL_NS_COMMON_TYPE], [ 16 AC_MSG_CHECKING([whether ns_type is accessible through ns_common]) 17 ZFS_LINUX_TEST_RESULT([ns_common_type], [ 18 AC_MSG_RESULT(yes) 19 AC_DEFINE([HAVE_NS_COMMON_TYPE], 1, 20 [Define if ns_type is accessible through ns_common]) 21 ],[ 22 AC_MSG_RESULT(no) 23 ]) 24]) 25 26AC_DEFUN([ZFS_AC_KERNEL_SRC_NAMESPACE], [ 27 ZFS_AC_KERNEL_SRC_NS_COMMON_TYPE 28]) 29 30AC_DEFUN([ZFS_AC_KERNEL_NAMESPACE], [ 31 ZFS_AC_KERNEL_NS_COMMON_TYPE 32]) 33