From: Artem Bityutskiy <dedekind1@gmail.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH V3] mtd: basic (read only) driver for BCMA serial flash
Date: Tue, 18 Sep 2012 16:32:44 +0300 [thread overview]
Message-ID: <1347975164.7112.63.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <1347875449-19318-1-git-send-email-zajec5@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2588 bytes --]
On Mon, 2012-09-17 at 11:50 +0200, Rafał Miłecki wrote:
> This registers MTD driver for serial flash platform device. Right now it
> supports reading only, writing still has to be implemented.
>
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
> ---
> V2: fix mem leak (add failure path in init)
> signed-off-by
> V3: drop BROKEN
> drop useless check in bcm47xxsflash_remove
> marm flash memory as ROM (until we implement writing)
Aiaiai complained:
--- before_patching.log
+++ after_patching.log
@@ @@
+drivers/mtd/devices/bcm47xxsflash.c:30:30: warning: incorrect type in argument 1 (different address spaces) [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:30:30: expected void const volatile [noderef] <asn:2>*mem [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:30:30: got unsigned char [usertype] *src [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:37:38: warning: incorrect type in argument 1 (different address spaces) [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:37:38: expected void const volatile [noderef] <asn:2>*mem [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:37:38: got unsigned int [usertype] *<noident> [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:43:30: warning: incorrect type in argument 1 (different address spaces) [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:43:30: expected void const volatile [noderef] <asn:2>*mem [sparse]
+drivers/mtd/devices/bcm47xxsflash.c:43:30: got unsigned char [usertype] *[assigned] src [sparse]
I pushed your patch to l2-mtd.git with these changes:
diff --git a/drivers/mtd/devices/bcm47xxsflash.c b/drivers/mtd/devices/bcm47xxsflash.c
index f711a51..a328872 100644
--- a/drivers/mtd/devices/bcm47xxsflash.c
+++ b/drivers/mtd/devices/bcm47xxsflash.c
@@ -15,7 +15,7 @@ static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len,
{
struct bcma_sflash *sflash = mtd->priv;
size_t bytes_read = 0;
- u8 *src = (u8 *)KSEG0ADDR(sflash->window + from);
+ __iomem u8 *src = (__iomem u8 *)KSEG0ADDR(sflash->window + from);
int i;
size_t unaligned_before, unaligned_after;
@@ -34,7 +34,7 @@ static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len,
}
for (i = from - unaligned_before; i < from + len - unaligned_after;
i += 4) {
- *(u32 *)buf = readl((u32 *)src);
+ *(u32 *)buf = readl(src);
buf += 4;
src += 4;
bytes_read += 4;
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-09-18 13:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-17 9:50 [PATCH V3] mtd: basic (read only) driver for BCMA serial flash Rafał Miłecki
2012-09-18 13:32 ` Artem Bityutskiy [this message]
2012-09-18 14:40 ` Jonas Gorski
2012-09-19 10:46 ` Rafał Miłecki
2012-09-26 7:42 ` Artem Bityutskiy
2012-09-26 7:55 ` Rafał Miłecki
2012-09-26 8:10 ` 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=1347975164.7112.63.camel@sauron.fi.intel.com \
--to=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=zajec5@gmail.com \
/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