Skip to contentSkip to conversation

Some WiFi driver fix to build with Linux 6.16

PATCH In review Giulio Benetti 3 participants 19 messages Sep 8, 2025 – Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Some WiFi driver fix to build with Linux 6.16

Giulio Benetti (5):
package/rtl8723bu: bump to 2025-09-08 version package/rtl8723ds: bump to 2025-09-08 version package/rtl8821cu: fix build failure with Linux 6.16 package/wilc-driver: fix build failure with Linux 6.16 package/xr819-xradio: bump to version 2025-08-08

 package/rtl8723bu/rtl8723bu.hash              |  2 +-
 package/rtl8723bu/rtl8723bu.mk                |  2 +-
 package/rtl8723ds/rtl8723ds.hash              |  2 +-
 package/rtl8723ds/rtl8723ds.mk                |  2 +-
 .../0001-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 .../0014-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 package/xr819-xradio/xr819-xradio.hash        |  2 +-
 package/xr819-xradio/xr819-xradio.mk          |  2 +-
 8 files changed, 74 insertions(+), 6 deletions(-)
 create mode 100644 package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch
 create mode 100644 package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/1 package/xr819-xradio: bump to version 2025-08-08

With this patch package builds with Linux up to version 6.16

---
 package/xr819-xradio/xr819-xradio.hash | 2 +-
 package/xr819-xradio/xr819-xradio.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/xr819-xradio/xr819-xradio.hash +1 -1
index 3189b3b7f1..fe91d856ec 100644
@@ -1,4 +1,4 @@
 # Locally computed
-sha256  049849b0821e5a41a3f7ce291caf216775f8fa2060de6d49351165cc4e6aa7f3  xr819-xradio-506fbc323f1c675d037eaf7ee928939394761aee.tar.gz
+sha256  c06dd87948b4a4c1bee070bbc3ce07b8711ec027e78ab9b83ea1c7350472105d  xr819-xradio-d766844ce8307e5902b3ab461f06bf8ad06891dd.tar.gz
 # Locally computed
 sha256  db296f2f7f35bca3a174efb0eb392b3b17bd94b341851429a3dff411b1c2fc73  LICENSE
package/xr819-xradio/xr819-xradio.mk +1 -1
index 5315ab0ef0..93fbdacb38 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-XR819_XRADIO_VERSION = 506fbc323f1c675d037eaf7ee928939394761aee
+XR819_XRADIO_VERSION = d766844ce8307e5902b3ab461f06bf8ad06891dd
 XR819_XRADIO_SITE = $(call github,fifteenhex,xradio,$(XR819_XRADIO_VERSION))
 XR819_XRADIO_LICENSE = GPL-2.0
 XR819_XRADIO_LICENSE_FILES = LICENSE
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH] package/xr819-xradio: bump to version 2025-08-08

In reply to Giulio Benetti

In reply of:

Quoted 3 lines

With this patch package builds with Linux up to version 6.16

Applied to 2025.08.x. Thanks

Quoted 35 lines
---
 package/xr819-xradio/xr819-xradio.hash | 2 +-
 package/xr819-xradio/xr819-xradio.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/xr819-xradio/xr819-xradio.hash +1 -1
index 3189b3b7f1..fe91d856ec 100644
@@ -1,4 +1,4 @@
 # Locally computed
-sha256  049849b0821e5a41a3f7ce291caf216775f8fa2060de6d49351165cc4e6aa7f3  xr819-xradio-506fbc323f1c675d037eaf7ee928939394761aee.tar.gz
+sha256  c06dd87948b4a4c1bee070bbc3ce07b8711ec027e78ab9b83ea1c7350472105d  xr819-xradio-d766844ce8307e5902b3ab461f06bf8ad06891dd.tar.gz
 # Locally computed
 sha256  db296f2f7f35bca3a174efb0eb392b3b17bd94b341851429a3dff411b1c2fc73  LICENSE
package/xr819-xradio/xr819-xradio.mk +1 -1
index 5315ab0ef0..93fbdacb38 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-XR819_XRADIO_VERSION = 506fbc323f1c675d037eaf7ee928939394761aee
+XR819_XRADIO_VERSION = d766844ce8307e5902b3ab461f06bf8ad06891dd
 XR819_XRADIO_SITE = $(call github,fifteenhex,xradio,$(XR819_XRADIO_VERSION))
 XR819_XRADIO_LICENSE = GPL-2.0
 XR819_XRADIO_LICENSE_FILES = LICENSE
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

PATCH 1/1 package/rtl8723bu: bump to 2025-09-08 version

In reply to Giulio Benetti

This version allows to build with Linux 6.16

---
 package/rtl8723bu/rtl8723bu.hash | 2 +-
 package/rtl8723bu/rtl8723bu.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/rtl8723bu/rtl8723bu.hash +1 -1
index c0216dd1eb..39d2202d6e 100644
@@ -1,2 +1,2 @@
 # Locally computed
-sha256  e50ce66539a5216b91460b8278606874040f3c21ce8afbe1f5e84595dafa6868  rtl8723bu-523cb38e4c62bb181d6b95024884e938835cf8cf.tar.gz
+sha256  f0d5fecf6f8fd9668d46c462d0cdb13d5cb91ecc383123989812f3d50ff28e65  rtl8723bu-89b6e527ad6bbae19caa6781ebac849b927d87db.tar.gz
package/rtl8723bu/rtl8723bu.mk +1 -1
index d9719a2cad..92fd93ccd2 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-RTL8723BU_VERSION = 523cb38e4c62bb181d6b95024884e938835cf8cf
+RTL8723BU_VERSION = 89b6e527ad6bbae19caa6781ebac849b927d87db
 RTL8723BU_SITE = $(call github,benetti-engineering,rtl8723bu,$(RTL8723BU_VERSION))
 RTL8723BU_LICENSE = GPL-2.0, proprietary (*.bin firmware blobs)
 
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH] package/rtl8723bu: bump to 2025-09-08 version

In reply to Giulio Benetti

In reply of:

Quoted 3 lines

This version allows to build with Linux 6.16

Applied to 2025.08.x. Thanks

Quoted 33 lines
---
 package/rtl8723bu/rtl8723bu.hash | 2 +-
 package/rtl8723bu/rtl8723bu.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/rtl8723bu/rtl8723bu.hash +1 -1
index c0216dd1eb..39d2202d6e 100644
@@ -1,2 +1,2 @@
 # Locally computed
-sha256  e50ce66539a5216b91460b8278606874040f3c21ce8afbe1f5e84595dafa6868  rtl8723bu-523cb38e4c62bb181d6b95024884e938835cf8cf.tar.gz
+sha256  f0d5fecf6f8fd9668d46c462d0cdb13d5cb91ecc383123989812f3d50ff28e65  rtl8723bu-89b6e527ad6bbae19caa6781ebac849b927d87db.tar.gz
package/rtl8723bu/rtl8723bu.mk +1 -1
index d9719a2cad..92fd93ccd2 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-RTL8723BU_VERSION = 523cb38e4c62bb181d6b95024884e938835cf8cf
+RTL8723BU_VERSION = 89b6e527ad6bbae19caa6781ebac849b927d87db
 RTL8723BU_SITE = $(call github,benetti-engineering,rtl8723bu,$(RTL8723BU_VERSION))
 RTL8723BU_LICENSE = GPL-2.0, proprietary (*.bin firmware blobs)
 
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#7 lore raw

PATCH 1/1 package/wilc-driver: fix build failure with Linux 6.16

In reply to Giulio Benetti

Add a local patch pending upstream to fix build failure with Linux 6.16

---
 .../0014-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch
package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch new file +34 -0
new file mode 100644
index 0000000000..bf4a8106af
@@ -0,0 +1,34 @@
+From 8ee37436cfa1bdac354ff63e17b647e7b5fb20f9 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+Date: Mon, 8 Sep 2025 21:14:22 +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/embeddedTS/wilc3000-external-module/pull/10
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ netdev.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/netdev.h b/netdev.h
+index 607a3b5..33708ad 100644
+--- a/netdev.h
++++ b/netdev.h
+@@ -15,6 +15,10 @@
+ #include <linux/gpio/consumer.h>
+ #include <linux/version.h>
+ 
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
++#define from_timer	timer_container_of
++#endif
++
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0))
+ static inline int del_timer_sync(struct timer_list *timer)
+ {
+-- 
+2.43.0
+
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

Re: [Buildroot] [PATCH] package/wilc-driver: fix build failure with Linux 6.16

Quoted 3 lines · Giulio Benetti

Add a local patch pending upstream to fix build failure with Linux 6.16

Applied to master, thanks.

This commit adds the fourteenth package patch to wilc-driver. The package is currently at version linux4microchip-2021.10-1 and I see there is a newer tag:
https://github.com/embeddedTS/wilc3000-external-module/releases/tag/linux4microchip-2024.04

Could we reduce a bit the number package patches by bumping the package version?

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#9 lore raw

Re: [Buildroot] [PATCH] package/wilc-driver: fix build failure with Linux 6.16

Hi Julien, Kris,

Quoted 7 lines · Julien Olivain
Quoted 3 lines · Giulio Benetti

Add a local patch pending upstream to fix build failure with Linux 6.16

Applied to master, thanks.

Quoted 7 lines

This commit adds the fourteenth package patch to wilc-driver.
The package is currently at version linux4microchip-2021.10-1
and I see there is a newer tag:
https://github.com/embeddedTS/wilc3000-external-module/releases/tag/ linux4microchip-2024.04

Could we reduce a bit the number package patches by bumping the package version?

Sorry for the very late reply.

As pointed here:
https://lore.kernel.org/buildroot/[email protected]/

they have 2 different branches that reflect Microchip ones:
1. 2021.10-with-community-patches => old kernel versions check but some potential bug. I keep opening PR I know that will never be merged AFAICR
2. 2024.04-with-community-patches => no old kernel versions check and it had to be maintained, but last patch is from 31st July 2024 and only supports Linux 6.7

On Linux Mainline there is no support for wilc3000(WiFi+BT), only for wilc1000(WiFi only).

So at this point I could take over 2021.10-with-community-patches on my company Github Benetti Engineering and keep patching for new Linux versions the same way I do for the other external drivers in Buildroot.

@Kris: does it work it for you?

Best regards

Signature · 9 lines
Giulio Benetti
CEO&CTO@Benetti Engineering
https://www.linkedin.com/company/benetti-engineering/
https://www.linkedin.com/in/giulio-benetti-79975951/

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw

Re: [Buildroot] [PATCH] package/wilc-driver: fix build failure with Linux 6.16

Giulio, Julien,

Quoted 23 lines · Giulio Benetti

Hi Julien, Kris,

Quoted 7 lines · Julien Olivain
Quoted 3 lines · Giulio Benetti

Add a local patch pending upstream to fix build failure with Linux 6.16

Applied to master, thanks.

Quoted 7 lines

This commit adds the fourteenth package patch to wilc-driver.
The package is currently at version linux4microchip-2021.10-1
and I see there is a newer tag:
https://github.com/embeddedTS/wilc3000-external-module/releases/tag/ linux4microchip-2024.04

Could we reduce a bit the number package patches by bumping the package version?

Sorry for the very late reply.

As pointed here:
https://lore.kernel.org/buildroot/[email protected]/

Quoted 6 lines

they have 2 different branches that reflect Microchip ones:
1. 2021.10-with-community-patches => old kernel versions check but some potential bug. I keep opening PR I know that will never be merged AFAICR
2. 2024.04-with-community-patches => no old kernel versions check and it had to be maintained, but last patch is from 31st July 2024 and only supports Linux 6.7

On Linux Mainline there is no support for wilc3000(WiFi+BT), only for wilc1000(WiFi only).

Note that the WILC3000 Wi-Fi is currently supported upstream, its in 6.12 LTS. But BLE is not supported as part of 6.12 (and I havn't looked in some time to see if there was any update on the state of it).

Until both are supported, however, we're going to maintain the wilc3000-external-module as best as we can. Likely meaning only the latest LTS kernel support due to time and testing constraints.

I would love to get your patches merged in, and its on my list, but my time is unfortunately been directed in to other things. Currently the 2024.04-with-community-patches supports at least up through 6.12.

Quoted 6 lines

So at this point I could take over 2021.10-with-community-patches on my company Github Benetti Engineering and keep patching for new Linux versions the same way I do for the other external drivers in Buildroot.

@Kris: does it work it for you?

I have no opinions either direction. If you would like to fork and maintain the external driver in that capacity, you are welcome to.

For the time being, our plan is to certainly keep it working in the latest LTS kernels with minimal patching outside of what patches that Microchip maintains in their kernel.

Signature · 8 lines
Kris Bahnsen
Software Engineer
embeddedTS

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#11 lore raw

Re: [Buildroot] [PATCH] package/wilc-driver: fix build failure with Linux 6.16

Hi Kris, Julien, All,

I've just sent patch to redirect to my repository so all local patches are committed upstream:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Best regards
Giulio

Quoted 51 lines · Kris Bahnsen

Giulio, Julien,

Quoted 23 lines · Giulio Benetti

Hi Julien, Kris,

Quoted 7 lines · Julien Olivain
Quoted 3 lines · Giulio Benetti

Add a local patch pending upstream to fix build failure with Linux 6.16

Applied to master, thanks.

Quoted 7 lines

This commit adds the fourteenth package patch to wilc-driver.
The package is currently at version linux4microchip-2021.10-1
and I see there is a newer tag:
https://github.com/embeddedTS/wilc3000-external-module/releases/tag/ linux4microchip-2024.04

Could we reduce a bit the number package patches by bumping the package version?

Sorry for the very late reply.

As pointed here:
https://lore.kernel.org/buildroot/[email protected]/

Quoted 6 lines

they have 2 different branches that reflect Microchip ones:
1. 2021.10-with-community-patches => old kernel versions check but some potential bug. I keep opening PR I know that will never be merged AFAICR
2. 2024.04-with-community-patches => no old kernel versions check and it had to be maintained, but last patch is from 31st July 2024 and only supports Linux 6.7

On Linux Mainline there is no support for wilc3000(WiFi+BT), only for wilc1000(WiFi only).

Note that the WILC3000 Wi-Fi is currently supported upstream, its in 6.12 LTS. But BLE is not supported as part of 6.12 (and I havn't looked in some time to see if there was any update on the state of it).

Until both are supported, however, we're going to maintain the wilc3000-external-module as best as we can. Likely meaning only the latest LTS kernel support due to time and testing constraints.

I would love to get your patches merged in, and its on my list, but my time is unfortunately been directed in to other things. Currently the 2024.04-with-community-patches supports at least up through 6.12.

Quoted 5 lines

So at this point I could take over 2021.10-with-community-patches on my company Github Benetti Engineering and keep patching for new Linux versions the same way I do for the other external drivers in Buildroot.

Quoted 9 lines
Quoted 1 line

@Kris: does it work it for you?

I have no opinions either direction. If you would like to fork and maintain the external driver in that capacity, you are welcome to.

For the time being, our plan is to certainly keep it working in the latest LTS kernels with minimal patching outside of what patches that Microchip maintains in their kernel.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#12 lore raw

Re: [Buildroot] [PATCH] package/wilc-driver: fix build failure with Linux 6.16

In reply to Giulio Benetti

In reply of:

Quoted 3 lines

Add a local patch pending upstream to fix build failure with Linux 6.16

Applied to 2025.08.x. Thanks

Quoted 52 lines
---
 .../0014-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch
package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch new file +34 -0
new file mode 100644
index 0000000000..bf4a8106af
@@ -0,0 +1,34 @@
+From 8ee37436cfa1bdac354ff63e17b647e7b5fb20f9 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+Date: Mon, 8 Sep 2025 21:14:22 +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/embeddedTS/wilc3000-external-module/pull/10
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ netdev.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/netdev.h b/netdev.h
+index 607a3b5..33708ad 100644
+--- a/netdev.h
++++ b/netdev.h
+@@ -15,6 +15,10 @@
+ #include <linux/gpio/consumer.h>
+ #include <linux/version.h>
+ 
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
++#define from_timer	timer_container_of
++#endif
++
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0))
+ static inline int del_timer_sync(struct timer_list *timer)
+ {
+-- 
+2.43.0
+
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#13 lore raw

PATCH 1/1 package/rtl8723ds: bump to 2025-09-08 version

In reply to Giulio Benetti

This version allows to build with Linux 6.16

---
 package/rtl8723ds/rtl8723ds.hash | 2 +-
 package/rtl8723ds/rtl8723ds.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/rtl8723ds/rtl8723ds.hash +1 -1
index d647f9ff28..fa3c472f57 100644
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  97231efcd0e36b8a95c7baf2aa387fd9cf8303ddd66ce463f25c83f9f989e405  rtl8723ds-97d714fdbfc562f71f2e72e5ce6cceb8e2a8be8a.tar.gz
+sha256  6cbe12b9ea2b816f52075cbcb402054ecd2cd984852b0da7bc82dfa2baa760e9  rtl8723ds-3ffabeef5e1af54ce3c19ce975ffd0dab731fd73.tar.gz
 sha256  cd5c66af63b509ccd75ec85fee41b6e5cbb77cd6bf9392a54900acc0f02be4a6  COPYING
package/rtl8723ds/rtl8723ds.mk +1 -1
index 67104fd5d7..e3e020eb7b 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-RTL8723DS_VERSION = 97d714fdbfc562f71f2e72e5ce6cceb8e2a8be8a
+RTL8723DS_VERSION = 3ffabeef5e1af54ce3c19ce975ffd0dab731fd73
 RTL8723DS_SITE = $(call github,benetti-engineering,rtl8723ds,$(RTL8723DS_VERSION))
 RTL8723DS_LICENSE = GPL-2.0
 RTL8723DS_LICENSE_FILES = COPYING
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#14 lore raw

Re: [Buildroot] [PATCH] package/rtl8723ds: bump to 2025-09-08 version

In reply of:

Quoted 3 lines

This version allows to build with Linux 6.16

Applied to 2025.08.x. Thanks

Quoted 34 lines
---
 package/rtl8723ds/rtl8723ds.hash | 2 +-
 package/rtl8723ds/rtl8723ds.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/rtl8723ds/rtl8723ds.hash +1 -1
index d647f9ff28..fa3c472f57 100644
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  97231efcd0e36b8a95c7baf2aa387fd9cf8303ddd66ce463f25c83f9f989e405  rtl8723ds-97d714fdbfc562f71f2e72e5ce6cceb8e2a8be8a.tar.gz
+sha256  6cbe12b9ea2b816f52075cbcb402054ecd2cd984852b0da7bc82dfa2baa760e9  rtl8723ds-3ffabeef5e1af54ce3c19ce975ffd0dab731fd73.tar.gz
 sha256  cd5c66af63b509ccd75ec85fee41b6e5cbb77cd6bf9392a54900acc0f02be4a6  COPYING
package/rtl8723ds/rtl8723ds.mk +1 -1
index 67104fd5d7..e3e020eb7b 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-RTL8723DS_VERSION = 97d714fdbfc562f71f2e72e5ce6cceb8e2a8be8a
+RTL8723DS_VERSION = 3ffabeef5e1af54ce3c19ce975ffd0dab731fd73
 RTL8723DS_SITE = $(call github,benetti-engineering,rtl8723ds,$(RTL8723DS_VERSION))
 RTL8723DS_LICENSE = GPL-2.0
 RTL8723DS_LICENSE_FILES = COPYING
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#15 lore raw

PATCH 1/1 package/rtl8821cu: fix build failure with Linux 6.16

In reply to Giulio Benetti

Add local patch pending upstream to fix build failure with Linux 6.16

---
 .../0001-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch
package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch new file +34 -0
new file mode 100644
index 0000000000..311d4fcd4c
@@ -0,0 +1,34 @@
+From 13f85e370c265b782a801cd22f86cea6f6cda876 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+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 <[email protected]>
+---
+ 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
+
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#17 lore raw

Re: [Buildroot] [PATCH] package/rtl8821cu: fix build failure with Linux 6.16

In reply to Giulio Benetti

In reply of:

Quoted 3 lines

Add local patch pending upstream to fix build failure with Linux 6.16

Applied to 2025.08.x. Thanks

Quoted 52 lines
---
 .../0001-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch
package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch new file +34 -0
new file mode 100644
index 0000000000..311d4fcd4c
@@ -0,0 +1,34 @@
+From 13f85e370c265b782a801cd22f86cea6f6cda876 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+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 <[email protected]>
+---
+ 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
+
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Reviewed-by Christian Stewart on v1 1/1
#18 lore raw
In reply to Giulio Benetti

Hi Giulio,

Quoted 20 lines · Giulio Benetti

Giulio Benetti (5):
package/rtl8723bu: bump to 2025-09-08 version package/rtl8723ds: bump to 2025-09-08 version package/rtl8821cu: fix build failure with Linux 6.16 package/wilc-driver: fix build failure with Linux 6.16 package/xr819-xradio: bump to version 2025-08-08

 package/rtl8723bu/rtl8723bu.hash              |  2 +-
 package/rtl8723bu/rtl8723bu.mk                |  2 +-
 package/rtl8723ds/rtl8723ds.hash              |  2 +-
 package/rtl8723ds/rtl8723ds.mk                |  2 +-
 .../0001-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 .../0014-Fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 package/xr819-xradio/xr819-xradio.hash        |  2 +-
 package/xr819-xradio/xr819-xradio.mk          |  2 +-
 8 files changed, 74 insertions(+), 6 deletions(-)
 create mode 100644 package/rtl8821cu/0001-Fix-build-for-kernel-6.16.patch
 create mode 100644 package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch
Quoted 3 lines

--
2.43.0

Series LGTM

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot