Skip to contentSkip to conversation

drivers/mtd/mtdcore.c: make symbols static

PATCH In review [email protected] 2 participants 2 messages Aug 6, 2009 – Aug 10, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 3/8 drivers/mtd/mtdcore.c: make symbols static

From: H Hartley Sweeten <[email protected]>

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

---

 drivers/mtd/mtdcore.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/mtdcore.c renamed from drivers/mtd/mtdcore.c~drivers-mtd-mtdcorec-make-symbols-static +2 -2
diff -puN drivers/mtd/mtdcore.c~drivers-mtd-mtdcorec-make-symbols-static 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,
 };

_

#1 lore raw
Quoted 8 lines · On Thu, 2009-08-06 at 16:05 -0700, [email protected] wrote:

From: H Hartley Sweeten <[email protected]>

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

This one is in my l2-mtd-2.6.git now.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)