[PATCH] drivers/mtd/mtdcore.c: don't export local symbols

From: H Hartley Sweeten
Date: Fri Jun 19 2009 - 21:00:26 EST


Make mtd_group and mtd_groups static since they are only used in
this file.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>

---

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index bccb4b1..a8a810c 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -187,11 +187,11 @@ static struct attribute *mtd_attrs[] = {
NULL,
};

-struct attribute_group mtd_group = {
+static struct attribute_group mtd_group = {
.attrs = mtd_attrs,
};

-struct attribute_group *mtd_groups[] = {
+static struct attribute_group *mtd_groups[] = {
&mtd_group,
NULL,
};
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/