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/drm workaround netbsd incompatibl...



details:   https://anonhg.NetBSD.org/src/rev/31e7438bdd29
branches:  trunk
changeset: 466040:31e7438bdd29
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Dec 09 15:36:16 2019 +0000

description:
workaround netbsd incompatible LIST_HEAD

adapted from drm_bridge.c r1.3

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_panel.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 82535af69a0d -r 31e7438bdd29 sys/external/bsd/drm2/dist/drm/drm_panel.c
--- a/sys/external/bsd/drm2/dist/drm/drm_panel.c        Mon Dec 09 15:30:42 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_panel.c        Mon Dec 09 15:36:16 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_panel.c,v 1.2 2018/08/27 04:58:19 riastradh Exp $  */
+/*     $NetBSD: drm_panel.c,v 1.3 2019/12/09 15:36:16 jakllsch Exp $   */
 
 /*
  * Copyright (C) 2013, NVIDIA Corporation.  All rights reserved.
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_panel.c,v 1.2 2018/08/27 04:58:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_panel.c,v 1.3 2019/12/09 15:36:16 jakllsch Exp $");
 
 #include <linux/err.h>
 #include <linux/module.h>
@@ -32,8 +32,13 @@
 #include <drm/drm_crtc.h>
 #include <drm/drm_panel.h>
 
+#ifdef __NetBSD__
+static struct mutex panel_lock;
+static struct list_head panel_list = LIST_HEAD_INIT(panel_list);
+#else
 static DEFINE_MUTEX(panel_lock);
 static LIST_HEAD(panel_list);
+#endif
 
 void drm_panel_init(struct drm_panel *panel)
 {



Home | Main Index | Thread Index | Old Index