From: Diego Escalante Urrelo <diegoe@gnome.org>
Date: Thu, 6 Nov 2025 20:04:41 -0500
Subject: wl: Do not flush system-wide queue

New kernel warning starting in 6.17
---
 amd64/src/wl/sys/wl_linux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/amd64/src/wl/sys/wl_linux.c b/amd64/src/wl/sys/wl_linux.c
index 8bf80ab..c221578 100644
--- a/amd64/src/wl/sys/wl_linux.c
+++ b/amd64/src/wl/sys/wl_linux.c
@@ -1509,7 +1509,9 @@ wl_down(wl_info_t *wl)
 		int i = 0;
 		for (i = 0; (atomic_read(&wl->callbacks) > callbacks) && i < 10000; i++) {
 			schedule();
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0)
 			flush_scheduled_work();
+#endif
 		}
 	}
 	else
