git: 7a9b9684e678 - main - graphics/nvidia-drm-61-kmod: Fix build on current after ae38a1a1bfdf

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Thu, 16 May 2024 22:12:07 UTC
The branch main has been updated by jkim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7a9b9684e678aaf366cdb4bf49e754dbcb9bc942

commit 7a9b9684e678aaf366cdb4bf49e754dbcb9bc942
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2024-05-16 22:00:33 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2024-05-16 22:11:40 +0000

    graphics/nvidia-drm-61-kmod: Fix build on current after ae38a1a1bfdf
    
    Approved by:    portmgr (blanket unbreak)
---
 .../nvidia-drm-61-kmod/files/patch-nvidia-drm-conftest.h   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/graphics/nvidia-drm-61-kmod/files/patch-nvidia-drm-conftest.h b/graphics/nvidia-drm-61-kmod/files/patch-nvidia-drm-conftest.h
new file mode 100644
index 000000000000..6809b4bfdfc0
--- /dev/null
+++ b/graphics/nvidia-drm-61-kmod/files/patch-nvidia-drm-conftest.h
@@ -0,0 +1,14 @@
+--- nvidia-drm-conftest.h.orig	2024-02-22 01:03:15 UTC
++++ nvidia-drm-conftest.h
+@@ -85,7 +85,11 @@
+ 
+ /* For nv_drm_gem_prime_force_fence_signal */
+ #ifndef spin_is_locked
++#if __FreeBSD_version < 1500018
+ #define spin_is_locked(lock) mtx_owned(lock.m)
++#else
++#define spin_is_locked(lock) mtx_owned(lock)
++#endif
+ #endif
+ 
+ #ifndef rwsem_is_locked