Module Name: src
Committed By: riastradh
Date: Wed Jul 24 02:38:06 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/dist/include/drm [riastradh-drm2]: drmP.h
src/sys/external/bsd/drm2/drm [riastradh-drm2]: drm_fops.c
Log Message:
Expose drm_lastclose from (our local) drm_fops.c.
Linux drm_stub.c wants it.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.30 -r1.1.1.1.2.31 \
src/sys/external/bsd/drm2/dist/include/drm/drmP.h
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/external/bsd/drm2/drm/drm_fops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/dist/include/drm/drmP.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.30 src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.31
--- src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.30 Wed Jul 24 02:32:56 2013
+++ src/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 02:38:06 2013
@@ -1438,6 +1438,7 @@ extern int drm_close_file(struct drm_fil
extern int drm_dequeue_event(struct drm_file *, size_t,
struct drm_pending_event **);
#endif
+extern void drm_lastclose(struct drm_device *);
#else
extern int drm_open(struct inode *inode, struct file *filp);
extern int drm_stub_open(struct inode *inode, struct file *filp);
Index: src/sys/external/bsd/drm2/drm/drm_fops.c
diff -u src/sys/external/bsd/drm2/drm/drm_fops.c:1.1.2.1 src/sys/external/bsd/drm2/drm/drm_fops.c:1.1.2.2
--- src/sys/external/bsd/drm2/drm/drm_fops.c:1.1.2.1 Wed Jul 24 02:19:53 2013
+++ src/sys/external/bsd/drm2/drm/drm_fops.c Wed Jul 24 02:38:06 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_fops.c,v 1.1.2.1 2013/07/24 02:19:53 riastradh Exp $ */
+/* $NetBSD: drm_fops.c,v 1.1.2.2 2013/07/24 02:38:06 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_fops.c,v 1.1.2.1 2013/07/24 02:19:53 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_fops.c,v 1.1.2.2 2013/07/24 02:38:06 riastradh Exp $");
#include <drm/drmP.h>
@@ -41,7 +41,6 @@ static void drm_events_release(struct dr
static void drm_close_file_contexts(struct drm_file *);
static void drm_close_file_master(struct drm_file *);
-static void drm_lastclose(struct drm_device *);
static void drm_lastclose_agp(struct drm_device *);
static void drm_lastclose_vma(struct drm_device *);
@@ -338,7 +337,7 @@ drm_close_file_master(struct drm_file *f
mutex_unlock(&dev->struct_mutex);
}
-static void
+void
drm_lastclose(struct drm_device *dev)
{