Resolve duplicate symbol name conflict after r345095, when building LINT.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
This commit is contained in:
hselasky 2019-03-13 19:53:20 +00:00
parent 76039ff57c
commit b3ba8cfe40
2 changed files with 7 additions and 8 deletions

View File

@ -112,7 +112,6 @@ struct ida {
int ida_pre_get(struct ida *ida, gfp_t gfp_mask);
int ida_get_new_above(struct ida *ida, int starting_id, int *p_id);
void ida_remove(struct ida *ida, int id);
void ida_free(struct ida *ida, int id);
void ida_destroy(struct ida *ida);
void ida_init(struct ida *ida);
@ -120,6 +119,13 @@ int ida_simple_get(struct ida *ida, unsigned int start, unsigned int end,
gfp_t gfp_mask);
void ida_simple_remove(struct ida *ida, unsigned int id);
static inline void
ida_free(struct ida *ida, int id)
{
ida_remove(ida, id);
}
static inline int
ida_get_new(struct ida *ida, int *p_id)
{

View File

@ -796,13 +796,6 @@ ida_remove(struct ida *ida, int id)
idr_remove(&ida->idr, id);
}
void
ida_free(struct ida *ida, int id)
{
ida_remove(ida, id);
}
void
ida_init(struct ida *ida)
{