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_mm: Allow multiple holes ...
details: https://anonhg.NetBSD.org/src/rev/e97533c028ed
branches: trunk
changeset: 1028580:e97533c028ed
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:22:15 2021 +0000
description:
drm_mm: Allow multiple holes with the same size.
Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/drm/drm_mm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e5de109375c5 -r e97533c028ed sys/external/bsd/drm2/dist/drm/drm_mm.c
--- a/sys/external/bsd/drm2/dist/drm/drm_mm.c Sun Dec 19 11:22:08 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_mm.c Sun Dec 19 11:22:15 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_mm.c,v 1.10 2021/12/19 11:03:09 riastradh Exp $ */
+/* $NetBSD: drm_mm.c,v 1.11 2021/12/19 11:22:15 riastradh Exp $ */
/**************************************************************************
*
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.10 2021/12/19 11:03:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.11 2021/12/19 11:22:15 riastradh Exp $");
#include <linux/export.h>
#include <linux/interval_tree_generic.h>
@@ -302,7 +302,7 @@
return -1;
if (a->hole_size > b->hole_size)
return +1;
- return 0;
+ return (a < b ? -1 : a > b ? +1 : 0);
}
static int
Home |
Main Index |
Thread Index |
Old Index