]> Pileus Git - ~andy/linux/commitdiff
idr: fix new kernel-doc warnings
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 4 Mar 2013 22:32:54 +0000 (14:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Mar 2013 03:42:09 +0000 (20:42 -0700)
Fix new kernel-doc warnings in idr:

  Warning(include/linux/idr.h:113): No description found for parameter 'idr'
  Warning(include/linux/idr.h:113): Excess function parameter 'idp' description in 'idr_find'
  Warning(lib/idr.c:232): Excess function parameter 'id' description in 'sub_alloc'
  Warning(lib/idr.c:232): Excess function parameter 'id' description in 'sub_alloc'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/idr.h
lib/idr.c

index a6f38b5c34e47d000f73483b6a8b3967a7c2f39e..8c1f81f823c8f1a01b8cdfecb83237012ad96deb 100644 (file)
@@ -99,7 +99,7 @@ static inline void idr_preload_end(void)
 
 /**
  * idr_find - return pointer for given id
- * @idp: idr handle
+ * @idr: idr handle
  * @id: lookup key
  *
  * Return the pointer given the id it has been registered with.  A %NULL
index 00739aaf95a2717536957f9cb08413621417a2f8..4f82a284c6a2236aed0d0fba61a1871d35ed6707 100644 (file)
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -214,7 +214,6 @@ EXPORT_SYMBOL(idr_pre_get);
  * sub_alloc - try to allocate an id without growing the tree depth
  * @idp: idr handle
  * @starting_id: id to start search at
- * @id: pointer to the allocated handle
  * @pa: idr_layer[MAX_IDR_LEVEL] used as backtrack buffer
  * @gfp_mask: allocation mask for idr_layer_alloc()
  * @layer_idr: optional idr passed to idr_layer_alloc()