lkml.org 
[lkml]   [2011]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] btree: Export btree_get_prev() so modules can use btree_for_each
Date
From: Steve Hodgson <steve@purestorage.com>

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.

Cc: Joern Engel <joern@logfs.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
---
lib/btree.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/btree.c b/lib/btree.c
index 2a34392..e5ec1e9 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)
--
1.7.5.4


\
 
 \ /
  Last update: 2011-12-28 09:57    [W:0.039 / U:2.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site