[Buildroot] [git commit branch/2025.08.x] package/wilc-driver: fix build failure with Linux 6.16

Thomas Perale thomas.perale at mind.be
Thu Sep 18 08:40:39 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=6890826a10280e8fb4fb16bf03ec8fd0784d5a13
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.08.x

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

Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit df7d287c81c6131b88fb091ad1e7b663bd80c0be)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
 .../0014-Fix-build-for-kernel-6.16.patch           | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch b/package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch
new file mode 100644
index 0000000000..bf4a8106af
--- /dev/null
+++ b/package/wilc-driver/0014-Fix-build-for-kernel-6.16.patch
@@ -0,0 +1,34 @@
+From 8ee37436cfa1bdac354ff63e17b647e7b5fb20f9 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <giulio.benetti at benettiengineering.com>
+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 <giulio.benetti at benettiengineering.com>
+---
+ 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
+


More information about the buildroot mailing list