summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer2026-02-23 18:35:57 +0000
committerDavid Bauer2026-02-23 18:36:04 +0000
commit8a3781836a04c07d75f9b8e34ff2c290ca523eb0 (patch)
treeb1a705c3b60efc2a97330890a9524526df22d973
parent3b69c2888fd1056c320c2dbe28da8d13fae3129e (diff)
downloadopenwrt-8a3781836a04c07d75f9b8e34ff2c290ca523eb0.tar.gz
ltq-vmmc: fix build failure
Linux-stable received a commit where the MIN / MAX defines in the lantiq drivers conflict with ones from the kernel. Undefine the ones inherited from the kernel to fix builds. Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=e035ca130ff7f5655f7c63caaeacaf0828f85cce Signed-off-by: David Bauer <mail@david-bauer.net>
-rw-r--r--package/kernel/lantiq/ltq-vmmc/patches/602-fix-conflicting-define.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-vmmc/patches/602-fix-conflicting-define.patch b/package/kernel/lantiq/ltq-vmmc/patches/602-fix-conflicting-define.patch
new file mode 100644
index 0000000000..5132ef4684
--- /dev/null
+++ b/package/kernel/lantiq/ltq-vmmc/patches/602-fix-conflicting-define.patch
@@ -0,0 +1,10 @@
+--- a/src/drv_vmmc_init_cap.c
++++ b/src/drv_vmmc_init_cap.c
+@@ -39,6 +39,7 @@
+ /* ============================= */
+ /* Local Macros & Definitions */
+ /* ============================= */
++#undef MIN
+ #define MIN(x,y) ({ (x) < (y) ? (x) : (y); })
+
+ /* ============================= */