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 drm: mind your prev's and neq...



details:   https://anonhg.NetBSD.org/src/rev/a8bca4f12b9d
branches:  trunk
changeset: 1028720:a8bca4f12b9d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:51:22 2021 +0000

description:
drm: mind your prev's and neqxt's

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_mm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 957b277bce18 -r a8bca4f12b9d sys/external/bsd/drm2/dist/drm/drm_mm.c
--- a/sys/external/bsd/drm2/dist/drm/drm_mm.c   Sun Dec 19 11:51:14 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_mm.c   Sun Dec 19 11:51:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_mm.c,v 1.12 2021/12/19 11:51:14 riastradh Exp $    */
+/*     $NetBSD: drm_mm.c,v 1.13 2021/12/19 11:51:22 riastradh Exp $    */
 
 /**************************************************************************
  *
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.12 2021/12/19 11:51:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.13 2021/12/19 11:51:22 riastradh Exp $");
 
 #include <linux/export.h>
 #include <linux/interval_tree_generic.h>
@@ -480,7 +480,7 @@
        default:
        case DRM_MM_INSERT_BEST:
 #ifdef __NetBSD__
-               return RB_TREE_NEXT(&mm->holes_size.rb_root.rbr_tree, node);
+               return RB_TREE_PREV(&mm->holes_size.rb_root.rbr_tree, node);
 #else
                return rb_hole_size_to_node(rb_prev(&node->rb_hole_size));
 #endif



Home | Main Index | Thread Index | Old Index