Skip to content

Commit b098161

Browse files
Li Zefantorvalds
authored andcommitted
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: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 45ce80f commit b098161

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/idr.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id)
292292
* and go back to the idr_pre_get() call. If the idr is full, it will
293293
* return -ENOSPC.
294294
*
295-
* @id returns a value in the range 0 ... 0x7fffffff
295+
* @id returns a value in the range @starting_id ... 0x7fffffff
296296
*/
297297
int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id)
298298
{
@@ -723,7 +723,7 @@ EXPORT_SYMBOL(ida_pre_get);
723723
* and go back to the ida_pre_get() call. If the ida is full, it will
724724
* return -ENOSPC.
725725
*
726-
* @p_id returns a value in the range 0 ... 0x7fffffff.
726+
* @p_id returns a value in the range @starting_id ... 0x7fffffff.
727727
*/
728728
int ida_get_new_above(struct ida *ida, int starting_id, int *p_id)
729729
{

0 commit comments

Comments
 (0)