All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/rtl8812au-aircrack-ng: fix build with Linux 6.16
@ 2025-08-15 21:54 Giulio Benetti
  2025-08-16 19:56 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Giulio Benetti @ 2025-08-15 21:54 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti

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

Fixes:
https://autobuild.buildroot.org/results/7a5b5f3e8d34e3e8ca155ffe168768275256c17e/
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 .../0002-fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/rtl8812au-aircrack-ng/0002-fix-build-for-kernel-6.16.patch

diff --git a/package/rtl8812au-aircrack-ng/0002-fix-build-for-kernel-6.16.patch b/package/rtl8812au-aircrack-ng/0002-fix-build-for-kernel-6.16.patch
new file mode 100644
index 0000000000..46f67f14ac
--- /dev/null
+++ b/package/rtl8812au-aircrack-ng/0002-fix-build-for-kernel-6.16.patch
@@ -0,0 +1,34 @@
+From de764c6b43fef79bdea8783232a89d2e8ff0e059 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <giulio.benetti@benettiengineering.com>
+Date: Fri, 15 Aug 2025 23:48:33 +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/aircrack-ng/rtl8812au/pull/1236
+Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
+---
+ include/osdep_service_linux.h | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h
+index 4c276f6..9f9a317 100644
+--- a/include/osdep_service_linux.h
++++ b/include/osdep_service_linux.h
+@@ -355,7 +355,9 @@ static inline void timer_hdl(struct timer_list *in_timer)
+ static inline void timer_hdl(unsigned long cntx)
+ #endif
+ {
+-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
++	_timer *ptimer = timer_container_of(ptimer, in_timer, timer);
++#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
+ 	_timer *ptimer = from_timer(ptimer, in_timer, timer);
+ #else
+ 	_timer *ptimer = (_timer *)cntx;
+-- 
+2.43.0
+
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] package/rtl8812au-aircrack-ng: fix build with Linux 6.16
  2025-08-15 21:54 [Buildroot] [PATCH] package/rtl8812au-aircrack-ng: fix build with Linux 6.16 Giulio Benetti
@ 2025-08-16 19:56 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-08-16 19:56 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot

On Fri, 15 Aug 2025 23:54:22 +0200
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> Add local patch pending upstream to fix build failure with Linux 6.16.
> 
> Fixes:
> https://autobuild.buildroot.org/results/7a5b5f3e8d34e3e8ca155ffe168768275256c17e/
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
>  .../0002-fix-build-for-kernel-6.16.patch      | 34 +++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 package/rtl8812au-aircrack-ng/0002-fix-build-for-kernel-6.16.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-16 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 21:54 [Buildroot] [PATCH] package/rtl8812au-aircrack-ng: fix build with Linux 6.16 Giulio Benetti
2025-08-16 19:56 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.