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 drm_crtc_vblank_waitq...



details:   https://anonhg.NetBSD.org/src/rev/58ed0c450919
branches:  trunk
changeset: 365761:58ed0c450919
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:39:05 2018 +0000

description:
drm_crtc_vblank_waitqueue has to have a sane type.

diffstat:

 sys/external/bsd/drm2/dist/include/drm/drmP.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 2a890e48b3d3 -r 58ed0c450919 sys/external/bsd/drm2/dist/include/drm/drmP.h
--- a/sys/external/bsd/drm2/dist/include/drm/drmP.h     Mon Aug 27 06:38:51 2018 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drmP.h     Mon Aug 27 06:39:05 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drmP.h,v 1.15 2018/08/27 06:17:30 riastradh Exp $      */
+/*     $NetBSD: drmP.h,v 1.16 2018/08/27 06:39:05 riastradh Exp $      */
 
 /*
  * Internal Header for the Direct Rendering Manager
@@ -1079,7 +1079,11 @@
  * This function returns a pointer to the vblank waitqueue for the CRTC.
  * Drivers can use this to implement vblank waits using wait_event() & co.
  */
+#ifdef __NetBSD__
+static inline drm_waitqueue_t *drm_crtc_vblank_waitqueue(struct drm_crtc *crtc)
+#else
 static inline wait_queue_head_t *drm_crtc_vblank_waitqueue(struct drm_crtc *crtc)
+#endif
 {
        return &crtc->dev->vblank[drm_crtc_index(crtc)].queue;
 }



Home | Main Index | Thread Index | Old Index