mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
config: remove HAVE_KERNEL_TIMER_LIST_FLAGS
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
eb230c789a
commit
1b522c4583
@ -36,13 +36,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_TIMER_SETUP], [
|
||||
struct timer_list tl;
|
||||
tl.function = task_expire;
|
||||
])
|
||||
|
||||
ZFS_LINUX_TEST_SRC([timer_list_flags], [
|
||||
#include <linux/timer.h>
|
||||
],[
|
||||
struct timer_list tl;
|
||||
tl.flags = 2;
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([ZFS_AC_KERNEL_TIMER_SETUP], [
|
||||
@ -63,13 +56,4 @@ AC_DEFUN([ZFS_AC_KERNEL_TIMER_SETUP], [
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([whether struct timer_list has flags])
|
||||
ZFS_LINUX_TEST_RESULT([timer_list_flags], [
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_KERNEL_TIMER_LIST_FLAGS, 1,
|
||||
[struct timer_list has a flags member])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
])
|
||||
|
@ -73,9 +73,7 @@ typedef unsigned long spl_timer_list_t;
|
||||
static inline void
|
||||
timer_setup(struct timer_list *timer, void (*func)(spl_timer_list_t), u32 fl)
|
||||
{
|
||||
#ifdef HAVE_KERNEL_TIMER_LIST_FLAGS
|
||||
(timer)->flags = fl;
|
||||
#endif
|
||||
init_timer(timer);
|
||||
setup_timer(timer, func, (spl_timer_list_t)(timer));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user