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/5f4c669b995c
branches: trunk
changeset: 364251:5f4c669b995c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:43:47 2018 +0000
description:
workaround netbsd incompatible LIST_HEAD
Author: coypu <coypu%sdf.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/drm/drm_bridge.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 015c90455e89 -r 5f4c669b995c sys/external/bsd/drm2/dist/drm/drm_bridge.c
--- a/sys/external/bsd/drm2/dist/drm/drm_bridge.c Mon Aug 27 06:43:35 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_bridge.c Mon Aug 27 06:43:47 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_bridge.c,v 1.2 2018/08/27 04:58:19 riastradh Exp $ */
+/* $NetBSD: drm_bridge.c,v 1.3 2018/08/27 06:43:47 riastradh Exp $ */
/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_bridge.c,v 1.2 2018/08/27 04:58:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_bridge.c,v 1.3 2018/08/27 06:43:47 riastradh Exp $");
#include <linux/err.h>
#include <linux/module.h>
@@ -58,8 +58,13 @@
* desired output at the end of the encoder chain.
*/
+#ifdef __NetBSD__
+static struct mutex bridge_lock;
+static struct list_head bridge_list = LIST_HEAD_INIT(bridge_list);
+#else
static DEFINE_MUTEX(bridge_lock);
static LIST_HEAD(bridge_list);
+#endif
/**
* drm_bridge_add - add the given bridge to the global bridge list
Home |
Main Index |
Thread Index |
Old Index