From 804c541446ab8e3fab11dba5d8fe07807af7fac5 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sun, 27 Dec 2020 19:42:24 +0100 Subject: ltq-atm/ltq-ptm: add kernel 5.10 compatiblity The callback handling of the tasklet API was redesigned and the macros using the old syntax renamed to _OLD. The stuck queue is now passed to ndo_tx_timeout callback but not used so far. Signed-off-by: Mathias Kresin --- package/kernel/lantiq/ltq-atm/src/ltq_atm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/kernel/lantiq/ltq-atm/src/ltq_atm.c') diff --git a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c index 55362a5c7b..5d23b5ec48 100644 --- a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c +++ b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c @@ -41,6 +41,7 @@ #include #include #include +#include #ifdef CONFIG_XFRM #include #endif @@ -199,7 +200,11 @@ static inline void mailbox_aal_rx_handler(void); static irqreturn_t mailbox_irq_handler(int, void *); static inline void mailbox_signal(unsigned int, int); static void do_ppe_tasklet(unsigned long); +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0) DECLARE_TASKLET(g_dma_tasklet, do_ppe_tasklet, 0); +#else +DECLARE_TASKLET_OLD(g_dma_tasklet, do_ppe_tasklet); +#endif /* * QSB & HTU setting functions -- cgit v1.2.3