Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Feb 2026 18:42:56 +0000
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Subject:   git: 9eb294e06a53 - main - x11/nvidia-kmod: Fix build with clang 21
Message-ID:  <69863630.336f1.5efd2823@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9eb294e06a534009a55c3667e71fc7f1b73f711b

commit 9eb294e06a534009a55c3667e71fc7f1b73f711b
Author:     Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
AuthorDate: 2026-02-06 18:40:37 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-02-06 18:42:49 +0000

    x11/nvidia-kmod: Fix build with clang 21
    
    PR:             292869
    Reported by:    dim
    Reviewed by:    ashafer
---
 x11/nvidia-kmod/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/x11/nvidia-kmod/Makefile b/x11/nvidia-kmod/Makefile
index 5c8c9111c64f..1fb53627f0d5 100644
--- a/x11/nvidia-kmod/Makefile
+++ b/x11/nvidia-kmod/Makefile
@@ -200,6 +200,13 @@ post-patch: .SILENT
 	${REINPLACE_CMD} -e '/vm_offset_t address;/s,vm_offset_t ,void *,' \
 		${WRKSRC}/src/${NVSRC}/nvidia_subr.c
 .endif
+# Fix build with clang 21 for nvidia-modeset.ko
+.if ${NVVERSION:R} >= 390
+	${REINPLACE_CMD} -e 's/format (printf, 3, 4)/format (__printf__, 3, 4)/' \
+		${WRKSRC}/src/nvidia-modeset/nvidia-modeset-os-interface.h
+	${REINPLACE_CMD} -e 's/va_list ap);/va_list ap); __attribute__((format (__printf__, 3, 0)));/' \
+		${WRKSRC}/src/nvidia-modeset/nvidia-modeset-os-interface.h
+.endif
 # Fix a K&R prototype
 .if ${NVVERSION:R} >= 390
 	${REINPLACE_CMD} -e '/nvlink_allocLock/s,(),(void),' \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69863630.336f1.5efd2823>