From: "Andreas Bießmann" <biessmann@corscience.de>
To: linux-kernel@vger.kernel.org
Cc: "David Brownell" <dbrownell@users.sourceforge.net>,
trivial@kernel.org, "Sandeep Paulraj" <s-paulraj@ti.com>,
linux-mtd@lists.infradead.org,
"Andrew Morton" <akpm@linux-foundation.org>,
"David Woodhouse" <dwmw2@infradead.org>,
"Andreas Bießmann" <biessmann@corscience.de>
Subject: [PATCH] atmel_nand: Fix warning: 'part_probes' defined but not used
Date: Thu, 5 Aug 2010 12:38:41 +0200 [thread overview]
Message-ID: <1281004721-397-1-git-send-email-biessmann@corscience.de> (raw)
In-Reply-To: <1279099026-24298-1-git-send-email-biessmann@corscience.de>
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.
Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
---
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(-)
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 04d3088..ccce0f0 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -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
--
1.7.1
next prev parent reply other threads:[~2010-08-05 10:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 9:17 [PATCH] atmel_nand: Fix warning: 'part_probes' defined but not used Andreas Bießmann
2010-08-05 10:38 ` Andreas Bießmann [this message]
2010-08-05 10:50 ` Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1281004721-397-1-git-send-email-biessmann@corscience.de \
--to=biessmann@corscience.de \
--cc=akpm@linux-foundation.org \
--cc=dbrownell@users.sourceforge.net \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=s-paulraj@ti.com \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).