mtd: uclinux: mark local stuff static
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Jun 5 14:59:27 EDT 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9f31f4b9dccf6fa4a606ae04602ec232b94727fb
Commit: 9f31f4b9dccf6fa4a606ae04602ec232b94727fb
Parent: 6ae392ccadbc622d58a9d01a7ee59e340f82fe85
Author: Mike Frysinger <vapier at gentoo.org>
AuthorDate: Tue May 26 19:33:17 2009 -0400
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jun 5 18:29:35 2009 +0100
mtd: uclinux: mark local stuff static
The uclinux_ram_mtdinfo, uclinux_romfs, and uclinux_point symbols do not
need to be visible outside of this module, so mark them static.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
CC: Greg Ungerer <gerg at uclinux.org>
CC: uclinux-dev at uclinux.org
CC: linux-mtd at lists.infradead.org
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/maps/uclinux.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c
index 61d4087..d4314fb 100644
--- a/drivers/mtd/maps/uclinux.c
+++ b/drivers/mtd/maps/uclinux.c
@@ -30,11 +30,11 @@ struct map_info uclinux_ram_map = {
.size = 0,
};
-struct mtd_info *uclinux_ram_mtdinfo;
+static struct mtd_info *uclinux_ram_mtdinfo;
/****************************************************************************/
-struct mtd_partition uclinux_romfs[] = {
+static struct mtd_partition uclinux_romfs[] = {
{ .name = "ROMfs" }
};
@@ -42,7 +42,7 @@ struct mtd_partition uclinux_romfs[] = {
/****************************************************************************/
-int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len,
+static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, void **virt, resource_size_t *phys)
{
struct map_info *map = mtd->priv;
More information about the linux-mtd-cvs
mailing list