Skip to contentSkip to conversation

atmel_nand: Fix warning: 'part_probes' defined but not used

PATCH New Andreas Bießmann 2 participants 3 messages Jul 14, 2010 – Aug 5, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atmel_nand: Fix warning: 'part_probes' defined but not used

This patch fixes

drivers/mtd/nand/atmel_nand.c:372: warning: 'part_probes' defined but not used

which is issued when CONFIG_MTD_PARTITIONS is defined but CONFIG_MTD_CMDLINE_PARTS not.

---
 drivers/mtd/nand/atmel_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/atmel_nand.c +1 -1
index 04d3088..ccce0f0 100644
@@ -364,7 +364,7 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode)
 	}
 }
 
-#ifdef CONFIG_MTD_PARTITIONS
+#ifdef CONFIG_MTD_CMDLINE_PARTS
 static const char *part_probes[] = { "cmdlinepart", NULL };
 #endif
 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 atmel_nand: Fix warning: 'part_probes' defined but not used

This patch fixes

drivers/mtd/nand/atmel_nand.c:372: warning: 'part_probes' defined but not used

which is issued when CONFIG_MTD_PARTITIONS is defined but CONFIG_MTD_CMDLINE_PARTS not.

---
Resent this patch as a trivial one cause it does only fix a warning which is seen in very rare cases. There is no functionality change here! I think this is the definition of a trivial patch.

In addition no one has commented my last submission of this patch.

 drivers/mtd/nand/atmel_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/atmel_nand.c +1 -1
index 04d3088..ccce0f0 100644
@@ -364,7 +364,7 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode)
 	}
 }
 
-#ifdef CONFIG_MTD_PARTITIONS
+#ifdef CONFIG_MTD_CMDLINE_PARTS
 static const char *part_probes[] = { "cmdlinepart", NULL };
 #endif
 
Signature · 1 line
1.7.1
#2 lore raw
Quoted 8 lines · Andreas Bießmann

This patch fixes

drivers/mtd/nand/atmel_nand.c:372: warning: 'part_probes' defined but not used

which is issued when CONFIG_MTD_PARTITIONS is defined but CONFIG_MTD_CMDLINE_PARTS not.

Pushed to my l2-mtd-2.6.git / master

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