Skip to content

Commit c8a09fc

Browse files
tititiou36akpm00
authored andcommitted
ida: remove the ida_simple_xxx() API
All users of the ida_simple_xxx() have been converted. In Linux 6.11-rc2, the only callers are in tools/testing/. So it is now time to remove the definition of this old and deprecated ida_simple_get() and ida_simple_remove(). Link: https://lkml.kernel.org/r/aa205f45fef70a9c948b6a98bad06da58e4de776.1752480043.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 8f09142 commit c8a09fc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

include/linux/idr.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,6 @@ static inline void ida_init(struct ida *ida)
334334
xa_init_flags(&ida->xa, IDA_INIT_FLAGS);
335335
}
336336

337-
/*
338-
* ida_simple_get() and ida_simple_remove() are deprecated. Use
339-
* ida_alloc() and ida_free() instead respectively.
340-
*/
341-
#define ida_simple_get(ida, start, end, gfp) \
342-
ida_alloc_range(ida, start, (end) - 1, gfp)
343-
#define ida_simple_remove(ida, id) ida_free(ida, id)
344-
345337
static inline bool ida_is_empty(const struct ida *ida)
346338
{
347339
return xa_empty(&ida->xa);

0 commit comments

Comments
 (0)