]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/rbtree.h
rbtree: add const qualifier to some functions
[linux-2.6-omap-h63xx.git] / include / linux / rbtree.h
index 344bc3495ddbd12548c32ebaf57cd3c6ee7e8be9..9c295411d01f66a65a22b034c6d13b7c7569cef4 100644 (file)
@@ -140,10 +140,10 @@ extern void rb_insert_color(struct rb_node *, struct rb_root *);
 extern void rb_erase(struct rb_node *, struct rb_root *);
 
 /* Find logical next and previous nodes in a tree */
-extern struct rb_node *rb_next(struct rb_node *);
-extern struct rb_node *rb_prev(struct rb_node *);
-extern struct rb_node *rb_first(struct rb_root *);
-extern struct rb_node *rb_last(struct rb_root *);
+extern struct rb_node *rb_next(const struct rb_node *);
+extern struct rb_node *rb_prev(const struct rb_node *);
+extern struct rb_node *rb_first(const struct rb_root *);
+extern struct rb_node *rb_last(const struct rb_root *);
 
 /* Fast replacement of a single node without remove/rebalance/add/rebalance */
 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,