[Buildroot] [PATCH v2] package/rtl8821cu: fix build failure with Linux 6.17

Giulio Benetti giulio.benetti at benettiengineering.com
Thu Oct 9 21:36:12 UTC 2025


* Bump to version 2025-10-09
* Drop upstreamed local patch

Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
---
V1->V2:
* pending patch has already been upstream so align with upstream version
---
 .../0001-Fix-build-for-kernel-6.16.patch      | 34 -------------------
 package/rtl8821cu/rtl8821cu.hash              |  2 +-
 package/rtl8821cu/rtl8821cu.mk                |  2 +-
 3 files changed, 2 insertions(+), 36 deletions(-)
 delete mode 100644 package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch

diff --git a/package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch b/package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch
deleted file mode 100644
index 311d4fcd4c..0000000000
--- a/package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 13f85e370c265b782a801cd22f86cea6f6cda876 Mon Sep 17 00:00:00 2001
-From: Giulio Benetti <giulio.benetti at benettiengineering.com>
-Date: Mon, 8 Sep 2025 21:04:30 +0200
-Subject: [PATCH] Fix build for kernel 6.16
-
-With commit:
-https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=41cb08555c4164996d67c78b3bf1c658075b75f1
-from_timer() has been renamed to timer_container_of() so let's rename
-according to linux version >= 6.16.
-
-Upstream: https://github.com/morrownr/8821cu-20210916/pull/187
-Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
----
- include/osdep_service_linux.h | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h
-index ed1e19b..c25f6a2 100644
---- a/include/osdep_service_linux.h
-+++ b/include/osdep_service_linux.h
-@@ -210,6 +210,10 @@ typedef void	*thread_context;
- typedef void timer_hdl_return;
- typedef void *timer_hdl_context;
- 
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(6, 16, 0))
-+#define from_timer     timer_container_of
-+#endif
-+
- #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 41))
- 	typedef struct work_struct _workitem;
- #else
--- 
-2.43.0
-
diff --git a/package/rtl8821cu/rtl8821cu.hash b/package/rtl8821cu/rtl8821cu.hash
index e7418b4cd0..b9869303de 100644
--- a/package/rtl8821cu/rtl8821cu.hash
+++ b/package/rtl8821cu/rtl8821cu.hash
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  6b4bf57959d14ad1a2637a0385876c6fb319d6e4951986bbba18de3c0e65bb86  rtl8821cu-d74134a1c68f59f2b80cdd6c6afb8c1a8a687cbf.tar.gz
+sha256  3e7fc5b598b81006fb07a5a3534aa4288cb387ed531c71f3734e55e6cae729b0  rtl8821cu-3d1fcf4bc838542ceb03b0b4e9e40600720cf6ae.tar.gz
 sha256  22cdb0a9cf492dbf05c5b27381a5c0e73ae0d4622427b522b0ba92b7495e5fb0  LICENSE
diff --git a/package/rtl8821cu/rtl8821cu.mk b/package/rtl8821cu/rtl8821cu.mk
index ac53b65fda..e1ef396110 100644
--- a/package/rtl8821cu/rtl8821cu.mk
+++ b/package/rtl8821cu/rtl8821cu.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-RTL8821CU_VERSION = d74134a1c68f59f2b80cdd6c6afb8c1a8a687cbf
+RTL8821CU_VERSION = 3d1fcf4bc838542ceb03b0b4e9e40600720cf6ae
 RTL8821CU_SITE = $(call github,morrownr,8821cu-20210916,$(RTL8821CU_VERSION))
 RTL8821CU_LICENSE = GPL-2.0
 RTL8821CU_LICENSE_FILES = LICENSE
-- 
2.47.3



More information about the buildroot mailing list