[patch 3/8] drivers/mtd/mtdcore.c: make symbols static
akpm at linux-foundation.org
akpm at linux-foundation.org
Thu Aug 6 19:05:32 EDT 2009
From: H Hartley Sweeten <hartleys at visionengravers.com>
Make mtd_group and mtd_groups static since they are only used in this
file.
Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
Cc: David Woodhouse <dwmw2 at infradead.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
---
drivers/mtd/mtdcore.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/mtd/mtdcore.c~drivers-mtd-mtdcorec-make-symbols-static drivers/mtd/mtdcore.c
--- a/drivers/mtd/mtdcore.c~drivers-mtd-mtdcorec-make-symbols-static
+++ a/drivers/mtd/mtdcore.c
@@ -213,11 +213,11 @@ static struct attribute *mtd_attrs[] = {
NULL,
};
-struct attribute_group mtd_group = {
+static struct attribute_group mtd_group = {
.attrs = mtd_attrs,
};
-const struct attribute_group *mtd_groups[] = {
+static const struct attribute_group *mtd_groups[] = {
&mtd_group,
NULL,
};
_
More information about the linux-mtd
mailing list