mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
config: remove HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
parent
a5b3a87030
commit
940f5d5658
@ -28,14 +28,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_TIMER_SETUP], [
|
||||
struct my_task_timer task_timer;
|
||||
timer_setup(&task_timer.timer, task_expire, 0);
|
||||
])
|
||||
|
||||
ZFS_LINUX_TEST_SRC([timer_list_function], [
|
||||
#include <linux/timer.h>
|
||||
static void task_expire(struct timer_list *tl) {}
|
||||
],[
|
||||
struct timer_list tl;
|
||||
tl.function = task_expire;
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([ZFS_AC_KERNEL_TIMER_SETUP], [
|
||||
@ -47,13 +39,4 @@ AC_DEFUN([ZFS_AC_KERNEL_TIMER_SETUP], [
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([whether timer function expects timer_list])
|
||||
ZFS_LINUX_TEST_RESULT([timer_list_function], [
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST, 1,
|
||||
[timer_list.function gets a timer_list])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
])
|
||||
|
@ -62,11 +62,7 @@
|
||||
container_of(timer, typeof(*var), timer_field)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST
|
||||
typedef struct timer_list *spl_timer_list_t;
|
||||
#else
|
||||
typedef unsigned long spl_timer_list_t;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_KERNEL_TIMER_SETUP
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user