openwrt/package
Stefan Kalscheuer a8afcd8fc2
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
mwlwifi: add pending patch to fix compilation with kernel 6.6.109+
Building against recent kernel versions (noticed with 6.12) and -Werror
can fail because a macro MAX(a,b) is already defined in minmax.h or
kernel.h before 5.10.

Initially noticed on 6.12, but it now happens after the kernel bump to
6.6.109 as well (upstream commit 6183c65)

In file included from ../mwlwifi-2025.02.06~db97edf2/hif/fwcmd.h:23,
                 from ../mwlwifi-2025.02.06~db97edf2/core.c:25:
../mwlwifi-2025.02.06~db97edf2/hif/hostcmd.h:1124: error: "MAX" redefined [-Werror]
 1124 | #define MAX(a, b) (((a) > (b)) ? (a) : (b))
      |         ^~~
In file included from usr/include/mac80211-backport/linux/minmax.h:4,
                 from ./include/linux/kernel.h:27,
                 from usr/include/mac80211-backport/linux/kernel.h:3,
                 from ./include/linux/skbuff.h:13,
                 from usr/include/mac80211-backport/linux/skbuff.h:3,
                 from ./include/linux/if_ether.h:19,
                 from usr/include/mac80211-backport/linux/if_ether.h:3,
                 from ./include/linux/etherdevice.h:20,
                 from usr/include/mac80211-backport/linux/etherdevice.h:3,
                 from ../mwlwifi-2025.02.06~db97edf2/core.c:18:
./include/linux/minmax.h:315: note: this is the location of the previous definition
  315 | #define MAX(a, b) __cmp(max, a, b)
      |         ^~~

Add a pending upstream patch which replaces the MAX(a,b) macro to avoid
conflicts and allow compilation with 6.12 backports

(cherry picked from commit 822bceb1d1)

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
Link: https://github.com/openwrt/openwrt/pull/20420
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-10-16 13:32:35 +02:00
..
base-files base-files: sysupgrade: Add new option -s to perform upgrade on current partition 2025-10-16 11:47:19 +02:00
boot ramips: add support for Qding QC202 2025-10-05 18:49:46 +02:00
devel perf: disable slang support 2025-06-17 23:36:56 +02:00
firmware ipq-wifi: Add entry for TP-Link Archer C59 v1 2025-10-14 22:21:08 +02:00
kernel mwlwifi: add pending patch to fix compilation with kernel 6.6.109+ 2025-10-16 13:32:35 +02:00
libs openssl: Update to version 3.0.18 2025-10-13 23:41:16 +02:00
network uqmi: Increase PKG_RELEASE 2025-09-19 01:56:33 +02:00
system rpcd: update to git openwrt-24.10 branch HEAD 2025-09-01 23:20:26 +02:00
utils busybox: fix login applet on selinux 2025-07-27 19:42:04 +02:00
Makefile package: rework contents of package index.json 2025-06-11 19:12:09 +02:00