atmel_nand: Fix warning: 'part_probes' defined but not used
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
@@ -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
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
@@ -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
Artem Bityutskiy
AppliedQuoted 8 lines · Andreas Bießmann
This patch fixes
drivers/mtd/nand/atmel_nand.c:372: warning: 'part_probes' defined but not usedwhich is issued when
CONFIG_MTD_PARTITIONSis defined butCONFIG_MTD_CMDLINE_PARTSnot.Signed-off-by Andreas Bießmann <[email protected]>
Pushed to my l2-mtd-2.6.git / master
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)