mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
mtd: mtd_blkdevs: local symbols should be static
The function blktrans_dev_release and blktrans_dev_put are only used locally in this file and should be static. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
ca91facf6b
commit
7f53f12f02
@ -40,7 +40,7 @@
|
||||
static LIST_HEAD(blktrans_majors);
|
||||
static DEFINE_MUTEX(blktrans_ref_mutex);
|
||||
|
||||
void blktrans_dev_release(struct kref *kref)
|
||||
static void blktrans_dev_release(struct kref *kref)
|
||||
{
|
||||
struct mtd_blktrans_dev *dev =
|
||||
container_of(kref, struct mtd_blktrans_dev, ref);
|
||||
@ -67,7 +67,7 @@ unlock:
|
||||
return dev;
|
||||
}
|
||||
|
||||
void blktrans_dev_put(struct mtd_blktrans_dev *dev)
|
||||
static void blktrans_dev_put(struct mtd_blktrans_dev *dev)
|
||||
{
|
||||
mutex_lock(&blktrans_ref_mutex);
|
||||
kref_put(&dev->ref, blktrans_dev_release);
|
||||
|
Loading…
Reference in New Issue
Block a user