Skip to contentSkip to conversation

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

PATCH New H Hartley Sweeten 1 participant 1 message Jun 20, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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

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

---

drivers/mtd/mtdcore.c +2 -2
index bccb4b1..a8a810c 100644
@@ -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,
 };