2 dnl # Linux 6.5 removes register_sysctl_table
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_REGISTER_SYSCTL_TABLE], [
5 ZFS_LINUX_TEST_SRC([has_register_sysctl_table], [
6 #include <linux/sysctl.h>
8 static struct ctl_table dummy_table[] = {
13 struct ctl_table_header *h
14 __attribute((unused)) = register_sysctl_table(dummy_table);
18 AC_DEFUN([ZFS_AC_KERNEL_REGISTER_SYSCTL_TABLE], [
19 AC_MSG_CHECKING([whether register_sysctl_table exists])
20 ZFS_LINUX_TEST_RESULT([has_register_sysctl_table], [
22 AC_DEFINE(HAVE_REGISTER_SYSCTL_TABLE, 1,
23 [register_sysctl_table exists])