Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Feb 2026 08:35:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-approval requested: [Bug 292869] x11/nvidia-driver: fix build with clang 21 : [Attachment 267695] x11/nvidia-kmod: Fix build with clang21 (Probosed update)
Message-ID:  <bug-292869-7141-LTD65mqMnf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-292869-7141@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

Tomoaki AOKI <junchoon@dec.sakura.ne.jp> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-approval:
Bug 292869: x11/nvidia-driver: fix build with clang 21
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292869

Attachment 267695: x11/nvidia-kmod: Fix build with clang21 (Probosed update)
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267695&action=edit



--- Comment #3 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
Created attachment 267695
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267695&action=edit
x11/nvidia-kmod: Fix build with clang21 (Probosed update)

If nvidia-modeset.ko alone is affected, it is NOT included in
x11/nvidia-kmod-{304|340}.
And as of differences on prototypes, first proposed patch included in initial
diff doesn't applicable for x11/nvidia-kmod-390.

This diff stops using additional patch and use REINPLACE_CMD instead to keep
things as simple as possible.

Not actually tested using clang21, but the targed file is edited by
REINPLACE_CMD as intended for all variants of x11/nvidia-kmod{-390|-470|-devel}
and does not fail on x11/nvidia-kmod-{304|340}.

As x11/nvidia-driver{-304|-340|-390|-470|-devel} no longer include kernel
module parts, this version should be sufficient. Targed file is used only for
building nvidia-modeset.ko.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292869-7141-LTD65mqMnf>