[openwrt/openwrt] ltq-vmmc: fix build failure
LEDE Commits
lede-commits at lists.infradead.org
Wed Feb 25 10:43:37 PST 2026
blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/8a3781836a04c07d75f9b8e34ff2c290ca523eb0
commit 8a3781836a04c07d75f9b8e34ff2c290ca523eb0
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Mon Feb 23 19:35:57 2026 +0100
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 at david-bauer.net>
---
.../lantiq/ltq-vmmc/patches/602-fix-conflicting-define.patch | 10 ++++++++++
1 file changed, 10 insertions(+)
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); })
+
+ /* ============================= */
More information about the lede-commits
mailing list