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 Pass drm_file, not file, pointer t...



details:   https://anonhg.NetBSD.org/src/rev/01a1ddae27b1
branches:  trunk
changeset: 1027887:01a1ddae27b1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:04:19 2021 +0000

description:
Pass drm_file, not file, pointer to drm_vma_node_is_allowed.

diffstat:

 sys/external/bsd/drm2/drm/drm_gem_vm.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r fe788735a778 -r 01a1ddae27b1 sys/external/bsd/drm2/drm/drm_gem_vm.c
--- a/sys/external/bsd/drm2/drm/drm_gem_vm.c    Sun Dec 19 01:04:12 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_gem_vm.c    Sun Dec 19 01:04:19 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_gem_vm.c,v 1.9 2018/08/27 07:51:06 riastradh Exp $ */
+/*     $NetBSD: drm_gem_vm.c,v 1.10 2021/12/19 01:04:19 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_gem_vm.c,v 1.9 2018/08/27 07:51:06 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem_vm.c,v 1.10 2021/12/19 01:04:19 riastradh Exp $");
 
 #include <sys/types.h>
 
@@ -97,8 +97,9 @@
 static int
 drm_gem_mmap_object_locked(struct drm_device *dev, off_t byte_offset,
     size_t nbytes, int prot __unused, struct uvm_object **uobjp,
-    voff_t *uoffsetp, struct file *file)
+    voff_t *uoffsetp, struct file *fp)
 {
+       struct drm_file *file = fp->f_data;
        const unsigned long startpage = (byte_offset >> PAGE_SHIFT);
        const unsigned long npages = (nbytes >> PAGE_SHIFT);
 



Home | Main Index | Thread Index | Old Index