[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200910055246.2297797-2-swboyd@chromium.org>
Date: Wed, 9 Sep 2020 22:52:46 -0700
From: Stephen Boyd <swboyd@...omium.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, Greg KH <gregkh@...uxfoundation.org>,
Tri Vo <trong@...roid.com>, Jonathan Corbet <corbet@....net>,
linux-doc@...r.kernel.org, Matthew Wilcox <willy@...radead.org>
Subject: [PATCH v3 2/2] idr: Document that ida_simple_{get,remove}() are deprecated
These two functions are deprecated. Users should call ida_alloc() or
ida_free() respectively instead. Add documentation to this effect until
the macro can be removed.
Cc: Greg KH <gregkh@...uxfoundation.org>
Reviewed-by: Tri Vo <trong@...roid.com>
Cc: Jonathan Corbet <corbet@....net>
Cc: linux-doc@...r.kernel.org
Cc: Matthew Wilcox <willy@...radead.org>
Signed-off-by: Stephen Boyd <swboyd@...omium.org>
---
include/linux/idr.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/idr.h b/include/linux/idr.h
index b235ed987021..a0dce14090a9 100644
--- a/include/linux/idr.h
+++ b/include/linux/idr.h
@@ -314,6 +314,10 @@ static inline void ida_init(struct ida *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)
--
Sent by a computer, using git, on the internet
Powered by blists - more mailing lists