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/drm Sprinkle some necessary includes a...
details: https://anonhg.NetBSD.org/src/rev/5dd1084b2503
branches: trunk
changeset: 1027870:5dd1084b2503
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:01:42 2021 +0000
description:
Sprinkle some necessary includes and forward decls.
diffstat:
sys/external/bsd/drm2/dist/include/drm/drm_auth.h | 17 ++++++++++++++++-
sys/external/bsd/drm2/drm/drm_lease.c | 13 +++++++++++--
2 files changed, 27 insertions(+), 3 deletions(-)
diffs (59 lines):
diff -r 1e0d392900a0 -r 5dd1084b2503 sys/external/bsd/drm2/dist/include/drm/drm_auth.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_auth.h Sun Dec 19 01:00:17 2021 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_auth.h Sun Dec 19 01:01:42 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_auth.h,v 1.2 2021/12/18 23:45:45 riastradh Exp $ */
+/* $NetBSD: drm_auth.h,v 1.3 2021/12/19 01:01:42 riastradh Exp $ */
#ifndef _DRM_AUTH_H_
#define _DRM_AUTH_H_
@@ -37,6 +37,21 @@
struct drm_file;
struct drm_hw_lock;
+#include <linux/idr.h>
+#include <linux/kref.h>
+#include <linux/list.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+
+#ifdef __NetBSD__
+#include <drm/drm_wait_netbsd.h>
+#endif
+
+struct drm_device;
+struct drm_file;
+struct drm_hw_lock;
+struct drm_master;
+
/*
* Legacy DRI1 locking data structure. Only here instead of in drm_legacy.h for
* include ordering reasons.
diff -r 1e0d392900a0 -r 5dd1084b2503 sys/external/bsd/drm2/drm/drm_lease.c
--- a/sys/external/bsd/drm2/drm/drm_lease.c Sun Dec 19 01:00:17 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_lease.c Sun Dec 19 01:01:42 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_lease.c,v 1.1 2021/12/19 00:26:09 riastradh Exp $ */
+/* $NetBSD: drm_lease.c,v 1.2 2021/12/19 01:01:43 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,8 +30,17 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_lease.c,v 1.1 2021/12/19 00:26:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_lease.c,v 1.2 2021/12/19 01:01:43 riastradh Exp $");
+
+#include <sys/types.h>
+#include <sys/errno.h>
+#include <sys/systm.h>
+#include <linux/mutex.h>
+
+#include <drm/drm_auth.h>
+#include <drm/drm_device.h>
+#include <drm/drm_file.h>
#include <drm/drm_lease.h>
/*
Home |
Main Index |
Thread Index |
Old Index