]> git.karo-electronics.de Git - karo-tx-linux.git/commit
idr: deprecate idr_remove_all()
authorTejun Heo <tj@kernel.org>
Wed, 20 Feb 2013 02:16:07 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:41 +0000 (16:53 +1100)
commit8b64470736cc7040a98b3f6d0c6705f165ef4c09
tree676bc4c0d1aeaa7e481a4012ea3eef5856003653
parent8e5e226f9c72159d8fb321f1b4fcabd6d4f93fc3
idr: deprecate idr_remove_all()

There was only one legitimate use of idr_remove_all() and a lot more
of incorrect uses (or lack of it).  Now that idr_destroy() implies
idr_remove_all() and all the in-kernel users updated not to use it,
there's no reason to keep it around.  Mark it deprecated so that we
can later unexport it.

idr_remove_all() is made an inline function calling __idr_remove_all()
to avoid triggering deprecated warning on EXPORT_SYMBOL().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/idr.h
lib/idr.c