mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] btree: Export btree_get_prev() so modules can use btree_for_each
@ 2011-12-28  8:53 Roland Dreier
  2011-12-30  9:36 ` Jörn Engel
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Dreier @ 2011-12-28  8:53 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Steve Hodgson, Joern Engel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-01  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-28  8:53 [PATCH] btree: Export btree_get_prev() so modules can use btree_for_each Roland Dreier
2011-12-30  9:36 ` Jörn Engel
     [not found]   ` <CADHUQJ4NHSGs-=g-rfzoAWRLi8SmNPtfeeC4XPuAa2bO91oRug@mail.gmail.com>
2012-01-01  7:16     ` Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome