--- a/include/linux/idr.h~idr-document-that-ida_simple_getremove-are-deprecated +++ a/include/linux/idr.h @@ -314,6 +314,10 @@ static inline void ida_init(struct ida * xa_init_flags(&ida->xa, IDA_INIT_FLAGS); } +/* + * ida_simple_get() and ida_simple_remove() are deprecated. Use + * ida_alloc() and ida_free() instead respectively. + */ #define ida_simple_get(ida, start, end, gfp) \ ida_alloc_range(ida, start, (end) - 1, gfp) #define ida_simple_remove(ida, id) ida_free(ida, id)