aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-24 16:41:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-24 16:41:39 -0400
commit229aebb873e29726b91e076161649cf45154b0bf (patch)
treeacc02a3702215bce8d914f4c8cc3d7a1382b1c67 /lib
parent8de547e1824437f3c6af180d3ed2162fa4b3f389 (diff)
parent50a23e6eec6f20d55a3a920e47adb455bff6046e (diff)
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits) Update broken web addresses in arch directory. Update broken web addresses in the kernel. Revert "drivers/usb: Remove unnecessary return's from void functions" for musb gadget Revert "Fix typo: configuation => configuration" partially ida: document IDA_BITMAP_LONGS calculation ext2: fix a typo on comment in ext2/inode.c drivers/scsi: Remove unnecessary casts of private_data drivers/s390: Remove unnecessary casts of private_data net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data drivers/infiniband: Remove unnecessary casts of private_data drivers/gpu/drm: Remove unnecessary casts of private_data kernel/pm_qos_params.c: Remove unnecessary casts of private_data fs/ecryptfs: Remove unnecessary casts of private_data fs/seq_file.c: Remove unnecessary casts of private_data arm: uengine.c: remove C99 comments arm: scoop.c: remove C99 comments Fix typo configue => configure in comments Fix typo: configuation => configuration Fix typo interrest[ing|ed] => interest[ing|ed] Fix various typos of valid in comments ... Fix up trivial conflicts in: drivers/char/ipmi/ipmi_si_intf.c drivers/usb/gadget/rndis.c net/irda/irnet/irnet_ppp.c
Diffstat (limited to 'lib')
-rw-r--r--lib/idr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/idr.c b/lib/idr.c
index 7f1a4f0acf50..5e0966be0f7c 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -284,7 +284,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id)
284 * idr_get_new_above - allocate new idr entry above or equal to a start id 284 * idr_get_new_above - allocate new idr entry above or equal to a start id
285 * @idp: idr handle 285 * @idp: idr handle
286 * @ptr: pointer you want associated with the id 286 * @ptr: pointer you want associated with the id
287 * @start_id: id to start search at 287 * @starting_id: id to start search at
288 * @id: pointer to the allocated handle 288 * @id: pointer to the allocated handle
289 * 289 *
290 * This is the allocate id function. It should be called with any 290 * This is the allocate id function. It should be called with any
@@ -479,7 +479,7 @@ EXPORT_SYMBOL(idr_remove_all);
479 479
480/** 480/**
481 * idr_destroy - release all cached layers within an idr tree 481 * idr_destroy - release all cached layers within an idr tree
482 * idp: idr handle 482 * @idp: idr handle
483 */ 483 */
484void idr_destroy(struct idr *idp) 484void idr_destroy(struct idr *idp)
485{ 485{
@@ -586,10 +586,11 @@ EXPORT_SYMBOL(idr_for_each);
586/** 586/**
587 * idr_get_next - lookup next object of id to given id. 587 * idr_get_next - lookup next object of id to given id.
588 * @idp: idr handle 588 * @idp: idr handle
589 * @id: pointer to lookup key 589 * @nextidp: pointer to lookup key
590 * 590 *
591 * Returns pointer to registered object with id, which is next number to 591 * Returns pointer to registered object with id, which is next number to
592 * given id. 592 * given id. After being looked up, *@nextidp will be updated for the next
593 * iteration.
593 */ 594 */
594 595
595void *idr_get_next(struct idr *idp, int *nextidp) 596void *idr_get_next(struct idr *idp, int *nextidp)
@@ -758,7 +759,7 @@ EXPORT_SYMBOL(ida_pre_get);
758/** 759/**
759 * ida_get_new_above - allocate new ID above or equal to a start id 760 * ida_get_new_above - allocate new ID above or equal to a start id
760 * @ida: ida handle 761 * @ida: ida handle
761 * @staring_id: id to start search at 762 * @starting_id: id to start search at
762 * @p_id: pointer to the allocated handle 763 * @p_id: pointer to the allocated handle
763 * 764 *
764 * Allocate new ID above or equal to @ida. It should be called with 765 * Allocate new ID above or equal to @ida. It should be called with
@@ -912,7 +913,7 @@ EXPORT_SYMBOL(ida_remove);
912 913
913/** 914/**
914 * ida_destroy - release all cached layers within an ida tree 915 * ida_destroy - release all cached layers within an ida tree
915 * ida: ida handle 916 * @ida: ida handle
916 */ 917 */
917void ida_destroy(struct ida *ida) 918void ida_destroy(struct ida *ida)
918{ 919{