mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 19:46:51 +00:00
8a40d49a56
Satisfy compiler expectations in a hell of typedef's and get rid of system-wide workqueue flush. Results in warning-free compile of the TAPI driver also with Linux 6.6. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Link: https://github.com/openwrt/openwrt/pull/15811 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 lines
437 B
Diff
12 lines
437 B
Diff
--- a/src/drv_tapi_linux.c
|
|
+++ b/src/drv_tapi_linux.c
|
|
@@ -3351,7 +3351,7 @@ static void __exit ifx_tapi_module_exit(
|
|
/* as we are using work queues to schedule events from the interrupt
|
|
context to the process context, we use work queues in case of
|
|
Linux 2.6. they must be flushed on driver unload... */
|
|
- flush_scheduled_work();
|
|
+ flush_workqueue(pTapiWq);
|
|
destroy_workqueue(pTapiWq);
|
|
#endif /* LINUX_2_6 */
|
|
|