mtd: mtd_blkdevs: local symbols should be static
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Mar 11 10:59:03 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=7f53f12f02b0b60af373a07fcac62b578381308e
Commit: 7f53f12f02b0b60af373a07fcac62b578381308e
Parent: ca91facf6babe548b5386993bb2820b7dc9b743d
Author: H Hartley Sweeten <hartleys at visionengravers.com>
AuthorDate: Tue Jan 11 18:46:10 2011 -0600
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Mar 11 14:22:42 2011 +0000
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 at visionengravers.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/mtd_blkdevs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index e0a2373..344ac10 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -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);
More information about the linux-mtd-cvs
mailing list