]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-special-state.m4
Revert "Linux 6.5 compat: register_sysctl_table removed"
[mirror_zfs.git] / config / kernel-special-state.m4
CommitLineData
414f7249
PD
1dnl #
2dnl # 4.17 API change
3dnl # Added set_special_state() function
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_SRC_SET_SPECIAL_STATE], [
6 ZFS_LINUX_TEST_SRC([set_special_state], [
7 #include <linux/sched.h>
8 ],[
9 set_special_state(TASK_STOPPED);
10 ])
11])
12
13AC_DEFUN([ZFS_AC_KERNEL_SET_SPECIAL_STATE], [
14 AC_MSG_CHECKING([whether set_special_state() exists])
15 ZFS_LINUX_TEST_RESULT([set_special_state], [
16 AC_MSG_RESULT(yes)
17 AC_DEFINE(HAVE_SET_SPECIAL_STATE, 1, [set_special_state() exists])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21])