mtd/include/linux rbtree.h,1.2,1.3

David Woodhouse dwmw2 at infradead.org
Tue Jan 14 08:56:08 EST 2003


Update of /home/cvs/mtd/include/linux
In directory phoenix.infradead.org:/tmp/cvs-serv1404

Modified Files:
	rbtree.h 
Log Message:
Make rbtree work in later kernels

Index: rbtree.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/rbtree.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- rbtree.h	26 Nov 2002 22:28:22 -0000	1.2
+++ rbtree.h	14 Jan 2003 13:56:05 -0000	1.3
@@ -8,14 +8,14 @@
 
 #include <linux/version.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,40)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,40)
+#include_next <linux/rbtree.h>
+#else
 #define rb_node_s rb_node
 #define rb_root_s rb_root
-#endif
 
 #include <linux/rbtree-24.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,40)
 /* 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 *);





More information about the linux-mtd-cvs mailing list