[PATCH] rbtree: fixup kernel-doc names

Randy Dunlap posted 1 patch 2 days, 17 hours ago
include/linux/rbtree.h       |    2 +-
include/linux/rbtree_latch.h |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[PATCH] rbtree: fixup kernel-doc names
Posted by Randy Dunlap 2 days, 17 hours ago
Use the correct function parameter name in rb_next_match().
Use the struct keyword when describing struct latch_tree_ops.

Prevents the following kernel-doc warnings:

Warning: ./include/linux/rbtree.h:510 function parameter 'node' not
 described in 'rb_next_match'
Warning: ./include/linux/rbtree.h:510 Excess function parameter 'tree'
 description in 'rb_next_match'
Warning: ./include/linux/rbtree_latch.h:63 cannot understand function
 prototype: 'struct latch_tree_ops'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@kernel.org>

 include/linux/rbtree.h       |    2 +-
 include/linux/rbtree_latch.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20260720.orig/include/linux/rbtree.h
+++ linux-next-20260720/include/linux/rbtree.h
@@ -500,7 +500,7 @@ rb_find_first(const void *key, const str
 /**
  * rb_next_match() - find the next @key in @tree
  * @key: key to match
- * @tree: tree to search
+ * @node: tree to search
  * @cmp: operator defining node order
  *
  * Returns the next node matching @key, or NULL.
--- linux-next-20260720.orig/include/linux/rbtree_latch.h
+++ linux-next-20260720/include/linux/rbtree_latch.h
@@ -47,7 +47,7 @@ struct latch_tree_root {
 };
 
 /**
- * latch_tree_ops - operators to define the tree order
+ * struct latch_tree_ops - operators to define the tree order
  * @less: used for insertion; provides the (partial) order between two elements.
  * @comp: used for lookups; provides the order between the search key and an element.
  *