This is clearly part of the exported API.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
void *mas_walk(struct ma_state *mas);
void *mas_store(struct ma_state *mas, void *entry);
+void *mas_erase(struct ma_state *mas);
int mas_store_gfp(struct ma_state *mas, void *entry, gfp_t gfp);
void *mas_find(struct ma_state *mas, unsigned long max);
*
* Return: the entry that was erased, @mas->index and @mas->last are updated.
*/
-static inline void *mas_erase(struct ma_state *mas)
+void *mas_erase(struct ma_state *mas)
{
unsigned long r_max, r_min;
void *entry = NULL;
return entry;
}
+EXPORT_SYMBOL_GPL(mas_erase);
/*
* mas_nomem() - * Check if there was an error allocating and do the allocation