Commit b098161b authored by Li Zefan's avatar Li Zefan Committed by Linus Torvalds

idr: fix wrong kernel-doc

idr_get_new_above() and ida_get_new_above() return an id in the range of
@staring_id ... 0x7fffffff, not 0 ... 0x7fffffff.
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 45ce80fb
...@@ -292,7 +292,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id) ...@@ -292,7 +292,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id)
* and go back to the idr_pre_get() call. If the idr is full, it will * and go back to the idr_pre_get() call. If the idr is full, it will
* return -ENOSPC. * return -ENOSPC.
* *
* @id returns a value in the range 0 ... 0x7fffffff * @id returns a value in the range @starting_id ... 0x7fffffff
*/ */
int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id) int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id)
{ {
...@@ -723,7 +723,7 @@ EXPORT_SYMBOL(ida_pre_get); ...@@ -723,7 +723,7 @@ EXPORT_SYMBOL(ida_pre_get);
* and go back to the ida_pre_get() call. If the ida is full, it will * and go back to the ida_pre_get() call. If the ida is full, it will
* return -ENOSPC. * return -ENOSPC.
* *
* @p_id returns a value in the range 0 ... 0x7fffffff. * @p_id returns a value in the range @starting_id ... 0x7fffffff.
*/ */
int ida_get_new_above(struct ida *ida, int starting_id, int *p_id) int ida_get_new_above(struct ida *ida, int starting_id, int *p_id)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment