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/include/linux Fix parameter order to m...



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

description:
Fix parameter order to match Linux.

diffstat:

 sys/external/bsd/drm2/include/linux/rbtree.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 47086171e67c -r a6bae878c3c8 sys/external/bsd/drm2/include/linux/rbtree.h
--- a/sys/external/bsd/drm2/include/linux/rbtree.h      Sun Dec 19 01:44:19 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/rbtree.h      Sun Dec 19 01:44:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rbtree.h,v 1.5 2021/12/19 01:08:43 riastradh Exp $     */
+/*     $NetBSD: rbtree.h,v 1.6 2021/12/19 01:44:26 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
 }
 
 static inline void
-rb_erase(struct rb_root *root, struct rb_node *rbnode)
+rb_erase(struct rb_node *rbnode, struct rb_root *root)
 {
        struct rb_tree *tree = &root->rbr_tree;
        void *node = (char *)rbnode - tree->rbt_ops->rbto_node_offset;
@@ -59,9 +59,9 @@
 }
 
 static inline void
-rb_erase_cached(struct rb_root_cached *root, struct rb_node *rbnode)
+rb_erase_cached(struct rb_node *rbnode, struct rb_root_cached *root)
 {
-       rb_erase(&root->rbrc_root, rbnode);
+       rb_erase(rbnode, &root->rbrc_root);
 }
 
 #endif  /* _LINUX_RBTREE_H_ */



Home | Main Index | Thread Index | Old Index