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 Catch up with function renames



details:   https://anonhg.NetBSD.org/src/rev/79492cbff4fc
branches:  trunk
changeset: 1028203:79492cbff4fc
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 09:49:08 2021 +0000

description:
Catch up with function renames

reference -> get, unreference -> put


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/drm/drm_gem_cma_helper.c |   6 +++---
 sys/external/bsd/drm2/drm/drm_gem_vm.c         |  10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r e7fe8a8faf8d -r 79492cbff4fc sys/external/bsd/drm2/drm/drm_gem_cma_helper.c
--- a/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c    Sun Dec 19 09:49:01 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c    Sun Dec 19 09:49:08 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_gem_cma_helper.c,v 1.11 2021/12/19 00:55:18 riastradh Exp $ */
+/* $NetBSD: drm_gem_cma_helper.c,v 1.12 2021/12/19 09:49:08 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_gem_cma_helper.c,v 1.11 2021/12/19 00:55:18 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem_cma_helper.c,v 1.12 2021/12/19 09:49:08 riastradh Exp $");
 
 #include <drm/drmP.h>
 #include <drm/drm_gem_cma_helper.h>
@@ -160,7 +160,7 @@
                return -ENOMEM;
 
        error = drm_gem_handle_create(file_priv, &obj->base, &handle);
-       drm_gem_object_unreference_unlocked(&obj->base);
+       drm_gem_object_put_unlocked(&obj->base);
        if (error) {
                drm_gem_cma_obj_free(obj);
                return error;
diff -r e7fe8a8faf8d -r 79492cbff4fc sys/external/bsd/drm2/drm/drm_gem_vm.c
--- a/sys/external/bsd/drm2/drm/drm_gem_vm.c    Sun Dec 19 09:49:01 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_gem_vm.c    Sun Dec 19 09:49:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_gem_vm.c,v 1.11 2021/12/19 01:13:28 riastradh Exp $        */
+/*     $NetBSD: drm_gem_vm.c,v 1.12 2021/12/19 09:49:08 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.11 2021/12/19 01:13:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem_vm.c,v 1.12 2021/12/19 09:49:08 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/file.h>
@@ -51,7 +51,7 @@
        struct drm_gem_object *const obj = container_of(uobj,
            struct drm_gem_object, gemo_uvmobj);
 
-       drm_gem_object_reference(obj);
+       drm_gem_object_get(obj);
 }
 
 void
@@ -60,7 +60,7 @@
        struct drm_gem_object *const obj = container_of(uobj,
            struct drm_gem_object, gemo_uvmobj);
 
-       drm_gem_object_unreference_unlocked(obj);
+       drm_gem_object_put_unlocked(obj);
 }
 
 int
@@ -130,7 +130,7 @@
        KASSERT(obj->dev == dev);
 
        /* Success!  */
-       drm_gem_object_reference(obj);
+       drm_gem_object_get(obj);
        *uobjp = &obj->gemo_uvmobj;
        *uoffsetp = 0;
        return 0;



Home | Main Index | Thread Index | Old Index