From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751895Ab1L1IyM (ORCPT ); Wed, 28 Dec 2011 03:54:12 -0500 Received: from na3sys010aog107.obsmtp.com ([74.125.245.82]:46032 "HELO na3sys010aog107.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751394Ab1L1IyK (ORCPT ); Wed, 28 Dec 2011 03:54:10 -0500 From: Roland Dreier To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Steve Hodgson , Joern Engel Subject: [PATCH] btree: Export btree_get_prev() so modules can use btree_for_each Date: Wed, 28 Dec 2011 00:53:59 -0800 Message-Id: <1325062439-1325-1-git-send-email-roland@kernel.org> X-Mailer: git-send-email 1.7.5.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steve Hodgson 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 Signed-off-by: Roland Dreier --- 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