diff --git a/sys/compat/linuxkpi/common/include/linux/spinlock.h b/sys/compat/linuxkpi/common/include/linux/spinlock.h --- a/sys/compat/linuxkpi/common/include/linux/spinlock.h +++ b/sys/compat/linuxkpi/common/include/linux/spinlock.h @@ -104,6 +104,11 @@ #define spin_trylock_irq(_l) \ spin_trylock(_l) +#define spin_trylock_irqsave(_l, flags) ({ \ + (flags) = 0; \ + spin_trylock(_l); \ +}) + #define spin_lock_nested(_l, _n) do { \ if (SPIN_SKIP()) \ break; \