Commit 1e4f2ef4 authored by Dave Jones's avatar Dave Jones

[PATCH] export rbtree routines for modules.

parent 8902f99e
......@@ -8,7 +8,7 @@
L_TARGET := lib.a
export-objs := cmdline.o dec_and_lock.o rwsem-spinlock.o rwsem.o crc32.o
export-objs := cmdline.o dec_and_lock.o rwsem-spinlock.o rwsem.o crc32.o rbtree.o
obj-y := errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o bust_spinlocks.o rbtree.o
......
......@@ -20,6 +20,7 @@
*/
#include <linux/rbtree.h>
#include <linux/module.h>
static void __rb_rotate_left(rb_node_t * node, rb_root_t * root)
{
......@@ -125,6 +126,7 @@ void rb_insert_color(rb_node_t * node, rb_root_t * root)
root->rb_node->rb_color = RB_BLACK;
}
EXPORT_SYMBOL(rb_insert_color);
static void __rb_erase_color(rb_node_t * node, rb_node_t * parent,
rb_root_t * root)
......@@ -291,3 +293,4 @@ void rb_erase(rb_node_t * node, rb_root_t * root)
if (color == RB_BLACK)
__rb_erase_color(child, parent, root);
}
EXPORT_SYMBOL(rb_erase);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment