From: Steve Hodgson Date: Tue, 10 Jan 2012 23:09:47 +0000 (-0800) Subject: btree: export btree_get_prev() so modules can use btree_for_each X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96b62067f970ff529c98913311d33f4b57b453dc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git btree: export btree_get_prev() so modules can use btree_for_each The btree_for_each API is implemented with macros that internally call btree_get_prev(), so if btree_get_prev() isn't exported then modules fail to link if they try to use one of the btree_for_each macros. Since the rest of the btree API is exported, we should keep things orthogonal and make this work too. Signed-off-by: Roland Dreier Signed-off-by: Steve Hodgson Acked-by: Joern Engel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/btree.c b/lib/btree.c index 2a34392bcecc..e5ec1e9c1aa5 100644 --- a/lib/btree.c +++ b/lib/btree.c @@ -357,6 +357,7 @@ miss: } return NULL; } +EXPORT_SYMBOL_GPL(btree_get_prev); static int getpos(struct btree_geo *geo, unsigned long *node, unsigned long *key)