Patchwork [PATCHv3,6/9] idr: Export idr_get_next()

login
register
mail settings
Submitter Ben Hutchings
Date Jan. 29, 2010, 8:59 p.m.
Message ID <1264798757.2785.36.camel@achroite.uk.solarflarecom.com>
Download mbox | patch
Permalink /patch/44030/
State New
Headers show

Comments

Ben Hutchings - Jan. 29, 2010, 8:59 p.m.
idr_get_next() was accidentally not exported when added.  It is about
to be used by mtdcore, which may be built as a module.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
---
 lib/idr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Artem Bityutskiy - Feb. 8, 2010, 3:14 p.m.
On Fri, 2010-01-29 at 20:59 +0000, Ben Hutchings wrote:
> idr_get_next() was accidentally not exported when added.  It is about
> to be used by mtdcore, which may be built as a module.
> 
> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>

It is nicer to add an Ack you got from Hiroyuki. But I'll do this.

Patch

diff --git a/lib/idr.c b/lib/idr.c
index 1cac726..21f9266 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -621,7 +621,7 @@  void *idr_get_next(struct idr *idp, int *nextidp)
 	}
 	return NULL;
 }
-
+EXPORT_SYMBOL(idr_get_next);
 

 /**