]> git.itanic.dy.fi Git - scan-pagemap/commitdiff
rbtree: Compile without the kernel
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 15 Oct 2011 17:52:58 +0000 (20:52 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 15 Oct 2011 17:54:03 +0000 (20:54 +0300)
Make minimum amoutn of changes in order to make it compile without the
kernel.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
rbtree.c
rbtree.h

index a16be19a130545ce44fc4f8c6a3f9fde866b9159..63a8f1670ce06f10f7cd4eb7228c6bec3d18b087 100644 (file)
--- a/rbtree.c
+++ b/rbtree.c
   linux/lib/rbtree.c
 */
 
-#include <linux/rbtree.h>
-#include <linux/module.h>
+#include <stdlib.h>
+
+#include "rbtree.h"
+
+#define EXPORT_SYMBOL(foo)
 
 static void __rb_rotate_left(struct rb_node *node, struct rb_root *root)
 {
index 033b507b33b17075e5ab5cf287b264d3b9b22f35..a22494a070f92fff350995be4412fe1dd6e12fbc 100644 (file)
--- a/rbtree.h
+++ b/rbtree.h
@@ -94,9 +94,6 @@ static inline struct page * rb_insert_page_cache(struct inode * inode,
 #ifndef        _LINUX_RBTREE_H
 #define        _LINUX_RBTREE_H
 
-#include <linux/kernel.h>
-#include <linux/stddef.h>
-
 struct rb_node
 {
        unsigned long  rb_parent_color;