From: Steve Rae <srae@broadcom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] mtd: fix compiler warnings
Date: Thu, 10 Mar 2016 14:26:28 -0800 [thread overview]
Message-ID: <1457648790-2112-2-git-send-email-srae@broadcom.com> (raw)
In-Reply-To: <1457648790-2112-1-git-send-email-srae@broadcom.com>
- add missing declaration
- update debug output format specifiers
Signed-off-by: Steve Rae <srae@broadcom.com>
---
the checkpatch warning:
warning: cmd/mtdparts.c,1494: quoted string split across lines
is for the existing code; it is not introduced with this change...
cmd/mtdparts.c | 4 ++--
include/linux/mtd/mtd.h | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c
index 86a4689..579eff1 100644
--- a/cmd/mtdparts.c
+++ b/cmd/mtdparts.c
@@ -1491,7 +1491,7 @@ static int spread_partitions(void)
part = list_entry(pentry, struct part_info, link);
debug("spread_partitions: device = %s%d, partition %d ="
- " (%s) 0x%08x at 0x%08x\n",
+ " (%s) 0x%08llx at 0x%08llx\n",
MTD_DEV_TYPE(dev->id->type), dev->id->num,
part_num, part->name, part->size,
part->offset);
@@ -2009,7 +2009,7 @@ static int do_mtdparts(cmd_tbl_t *cmdtp, int flag, int argc,
if (!strcmp(&argv[1][3], ".spread")) {
spread_partition(mtd, p, &next_offset);
- debug("increased %s to %d bytes\n", p->name, p->size);
+ debug("increased %s to %llu bytes\n", p->name, p->size);
}
#endif
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 9da77ec..9c36f02 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -495,5 +495,13 @@ int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size,
int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off,
loff_t *size, loff_t *maxsize, int devtype,
uint64_t chipsize);
+
+#ifdef CONFIG_CMD_MTDPARTS_SPREAD
+/* drivers/mtd/mtdcore.c */
+void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset,
+ const uint64_t length, uint64_t *len_incl_bad,
+ int *truncated);
+#endif /* CONFIG_CMD_MTDPARTS_SPREAD */
+
#endif
#endif /* __MTD_MTD_H__ */
--
1.8.5
next prev parent reply other threads:[~2016-03-10 22:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 22:26 [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver Steve Rae
2016-03-10 22:26 ` Steve Rae [this message]
2016-03-10 22:26 ` [U-Boot] [PATCH 3/4] arm: bcm: enable MTD support Steve Rae
2016-03-10 22:26 ` [U-Boot] [PATCH 4/4] arm: bcm: configure NAND device and environment Steve Rae
2016-03-11 18:02 ` [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver Tom Rini
2016-03-11 18:07 ` Steve Rae
2016-03-11 18:18 ` Tom Rini
2016-03-11 18:18 ` Steve Rae
2016-03-11 19:29 ` Scott Wood
[not found] ` <CAM7GXo=myANwdVRABqC2GcZa5visj=57hLp+SG9QSt7oDNSMLA@mail.gmail.com>
[not found] ` <1457726115.5360.163.camel@buserror.net>
2016-03-11 20:13 ` Steve Rae
2016-03-11 20:18 ` Scott Wood
2016-03-11 20:21 ` Steve Rae
2017-05-31 2:06 ` Chris Packham
2017-05-31 2:08 ` Chris Packham
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=1457648790-2112-2-git-send-email-srae@broadcom.com \
--to=srae@broadcom.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.