Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/include/drm spinlock_t needs <lin...



details:   https://anonhg.NetBSD.org/src/rev/d0f04a6fe266
branches:  trunk
changeset: 1027793:d0f04a6fe266
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:46:00 2021 +0000

description:
spinlock_t needs <linux/spinlock.h>; need forward decl of drm_crtc.

Disable waitqueue for now.  We won't be using the .c code; we just
need the .h file to compile.

diffstat:

 sys/external/bsd/drm2/dist/include/drm/drm_debugfs_crc.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 9746e1823c9f -r d0f04a6fe266 sys/external/bsd/drm2/dist/include/drm/drm_debugfs_crc.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_debugfs_crc.h  Sun Dec 19 00:45:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_debugfs_crc.h  Sun Dec 19 00:46:00 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_debugfs_crc.h,v 1.2 2021/12/18 23:45:45 riastradh Exp $    */
+/*     $NetBSD: drm_debugfs_crc.h,v 1.3 2021/12/19 00:46:00 riastradh Exp $    */
 
 /*
  * Copyright © 2016 Collabora Ltd.
@@ -24,6 +24,10 @@
 #ifndef __DRM_DEBUGFS_CRC_H__
 #define __DRM_DEBUGFS_CRC_H__
 
+#include <linux/spinlock.h>
+
+struct drm_crtc;
+
 #define DRM_MAX_CRC_NR         10
 
 /**
@@ -59,7 +63,9 @@
        struct drm_crtc_crc_entry *entries;
        int head, tail;
        size_t values_cnt;
+#ifndef __NetBSD__
        wait_queue_head_t wq;
+#endif
 };
 
 #if defined(CONFIG_DEBUG_FS)



Home | Main Index | Thread Index | Old Index