git: 29f35cb88175 - 2026Q2 - graphics/drm-66-kmod: Fix build with llvm 21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Jun 2026 20:07:37 UTC
The branch 2026Q2 has been updated by dumbbell:
URL: https://cgit.FreeBSD.org/ports/commit/?id=29f35cb881759e265eeb34373a546e3812a13149
commit 29f35cb881759e265eeb34373a546e3812a13149
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-04-27 07:30:39 +0000
Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-06-11 20:06:40 +0000
graphics/drm-66-kmod: Fix build with llvm 21
(cherry picked from commit 0188ce5233a3bc8fc3a6b73c5cf23743824c90c5)
---
graphics/drm-66-kmod/files/patch-i915_Makefile | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/graphics/drm-66-kmod/files/patch-i915_Makefile b/graphics/drm-66-kmod/files/patch-i915_Makefile
new file mode 100644
index 000000000000..51111ea15121
--- /dev/null
+++ b/graphics/drm-66-kmod/files/patch-i915_Makefile
@@ -0,0 +1,12 @@
+--- i915/Makefile.orig 2025-12-11 14:11:14 UTC
++++ i915/Makefile
+@@ -360,6 +360,9 @@ CWARNFLAGS += -Wno-pointer-arith -Wno-format -Wno-cast
+ # Reason: More or less all files need it due to use of test_bit() macro
+ # error: cast from 'const unsigned long *' to 'volatile unsigned long *'
+ CWARNFLAGS += -Wno-pointer-arith -Wno-format -Wno-cast-qual
++.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000
++CWARNFLAGS += -Wno-default-const-init-var-unsafe
++.endif
+
+ CWARNFLAGS.intel_acpi.c= -Wno-incompatible-pointer-types
+ CWARNFLAGS.intel_audio.c= -Wno-unused-function