summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer2026-02-23 18:34:46 +0000
committerDavid Bauer2026-02-23 18:34:48 +0000
commit3b69c2888fd1056c320c2dbe28da8d13fae3129e (patch)
tree98c0433634176a7740bfbdebc7cf1cc22893c7ef
parent00b6462cb00c87dc5c9678e61c6e35f63d616de9 (diff)
downloadopenwrt-3b69c2888fd1056c320c2dbe28da8d13fae3129e.tar.gz
ltq-vrx518-ep: 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/vrx518_ep/patches/300-fix-conflicting-define.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/kernel/lantiq/vrx518_ep/patches/300-fix-conflicting-define.patch b/package/kernel/lantiq/vrx518_ep/patches/300-fix-conflicting-define.patch
new file mode 100644
index 0000000000..0ce5d96709
--- /dev/null
+++ b/package/kernel/lantiq/vrx518_ep/patches/300-fix-conflicting-define.patch
@@ -0,0 +1,10 @@
+--- a/ep.c
++++ b/ep.c
+@@ -42,6 +42,7 @@
+ #define DC_EP_DBG
+
+ #define MAJ 2
++#undef MIN
+ #define MIN 1
+ #define BUILD 0
+ #define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \