config: remove HAVE_KERNEL_TIMER_SETUP

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:
Rob Norris
2024-08-24 20:49:42 +10:00
committed by Tony Hutter
parent b333618ffa
commit 9bf3282990
4 changed files with 1 additions and 59 deletions
-14
View File
@@ -62,18 +62,4 @@
container_of(timer, typeof(*var), timer_field)
#endif
typedef struct timer_list *spl_timer_list_t;
#ifndef HAVE_KERNEL_TIMER_SETUP
static inline void
timer_setup(struct timer_list *timer, void (*func)(spl_timer_list_t), u32 fl)
{
(timer)->flags = fl;
init_timer(timer);
setup_timer(timer, func, (spl_timer_list_t)(timer));
}
#endif /* HAVE_KERNEL_TIMER_SETUP */
#endif /* _SPL_TIMER_H */