Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1e4f2ef4
Commit
1e4f2ef4
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] export rbtree routines for modules.
parent
8902f99e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
lib/Makefile
lib/Makefile
+1
-1
lib/rbtree.c
lib/rbtree.c
+3
-0
No files found.
lib/Makefile
View file @
1e4f2ef4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
L_TARGET
:=
lib.a
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
obj-y
:=
errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o bust_spinlocks.o rbtree.o
...
...
lib/rbtree.c
View file @
1e4f2ef4
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include <linux/rbtree.h>
#include <linux/rbtree.h>
#include <linux/module.h>
static
void
__rb_rotate_left
(
rb_node_t
*
node
,
rb_root_t
*
root
)
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)
...
@@ -125,6 +126,7 @@ void rb_insert_color(rb_node_t * node, rb_root_t * root)
root
->
rb_node
->
rb_color
=
RB_BLACK
;
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
,
static
void
__rb_erase_color
(
rb_node_t
*
node
,
rb_node_t
*
parent
,
rb_root_t
*
root
)
rb_root_t
*
root
)
...
@@ -291,3 +293,4 @@ void rb_erase(rb_node_t * node, rb_root_t * root)
...
@@ -291,3 +293,4 @@ void rb_erase(rb_node_t * node, rb_root_t * root)
if
(
color
==
RB_BLACK
)
if
(
color
==
RB_BLACK
)
__rb_erase_color
(
child
,
parent
,
root
);
__rb_erase_color
(
child
,
parent
,
root
);
}
}
EXPORT_SYMBOL
(
rb_erase
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment