File: 41-wl-use-timer_container_of-for-kernel-6.16.patch

package info (click to toggle)
broadcom-sta 6.30.223.271-29
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 18,968 kB
  • sloc: ansic: 28,321; makefile: 317; xml: 36; sh: 14
file content (28 lines) | stat: -rw-r--r-- 941 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: You-Sheng Yang <vicamo@gmail.com>
Date: Fri, 13 Jun 2025 18:46:24 +0800
Subject: wl: use timer_container_of for kernel >= 6.16

`from_timer` macro renamed in v6.16-rc1 commit 41cb08555c416 ("treewide,
timers: Rename from_timer() to timer_container_of()").

Bug-Ubuntu: https://bugs.launchpad.net/bugs/2114261
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
---
 amd64/src/wl/sys/wl_linux.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/amd64/src/wl/sys/wl_linux.c b/amd64/src/wl/sys/wl_linux.c
index d36f8bc..8bf80ab 100644
--- a/amd64/src/wl/sys/wl_linux.c
+++ b/amd64/src/wl/sys/wl_linux.c
@@ -2377,7 +2377,9 @@ wl_timer(
 #endif
 ) {
 	wl_timer_t *t =
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
+		timer_container_of(t, tl, timer);
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
 		from_timer(t, tl, timer);
 #else
 		(wl_timer_t *)data;