From: hechtb@googlemail.com (Bastian Hecht)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/2] Add DMA and device tree support to the flash controller FLCTL
Date: Fri, 19 Oct 2012 12:05:09 +0200 [thread overview]
Message-ID: <CABYn4swnc5xT=gOCHk5wzQTHWe8TNOE5_o2A36xEgPSnDosSBQ@mail.gmail.com> (raw)
In-Reply-To: <1350626232.5769.318.camel@sauron.fi.intel.com>
Hey Artem,
>> I can reproduce the error with the following output:
>> /tmp/ccYAbker.s: Assembler messages:
>> /tmp/ccYAbker.s: Error: bad immediate value for 8-bit offset (2048)
>> make[3]: *** [drivers/mtd/nand/docg4.o] Error 1
>>
>> The compiler version is: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
>> I usually use: gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) and
>> can compile things without problems.
>
> Yeah, a bug report would be great. I've switched to 4.4.1 and checked
> your patches with aiaiai:
Ok I'll file one.
I've added a cleanup patch 1/3 and tackled the problems below as follows:
> --------------------------------------------------------------------------------
>
> Successfully built configuration "arm-mackerel_defconfig,arm,arm-none-linux-gnueabi-", results:
>
> --- before_patching.log
> +++ after_patching.log
> @@ @@
> +drivers/mtd/nand/sh_flctl.c:1142 flctl_probe() warn: 'irq' was not released on error [smatch]
> +drivers/mtd/nand/sh_flctl.c:1142:2-8: ERROR: missing iounmap; ioremap on line 1117 and execution via conditional on line 1140 [coccinelle]
Oh yes, my bad. Fixed in patch 3 (formerly 2).
> +drivers/mtd/nand/sh_flctl.c:164:25: warning: cast removes address space of expression [sparse]
> +drivers/mtd/nand/sh_flctl.c:181:25: warning: cast removes address space of expression [sparse]
Here I have no idea how to fix it. dma_addr_t is a typedef to u32. How
could I possibly not loose the address space?
> -drivers/mtd/nand/sh_flctl.c:311 write_fiforeg() Error invalid range 4096 to -1 [smatch]
Here my smatch (git head version) doesn't complain. Still I switched
to unsigned int for indexing an array member and hope this solves the
problem. Done in new patch 1/3.
> -drivers/mtd/nand/sh_flctl.c:317:17: warning: incorrect type in argument 2 (different address spaces) [sparse]
> -drivers/mtd/nand/sh_flctl.c:317:17: expected void volatile [noderef] <asn:2>*addr [sparse]
> -drivers/mtd/nand/sh_flctl.c:317:17: got void *fifo_addr [sparse]
Fixed in new patch 1/3.
> +drivers/mtd/nand/sh_flctl.c:469 write_fiforeg() Error invalid range 4096 to -1 [smatch]
Same as above. Unclear how to solve.
> +drivers/mtd/nand/sh_flctl.c:485:17: warning: incorrect type in argument 2 (different address spaces) [sparse]
> +drivers/mtd/nand/sh_flctl.c:485:17: expected void volatile [noderef] <asn:2>*addr [sparse]
> +drivers/mtd/nand/sh_flctl.c:485:17: got void *fifo_addr [sparse]
Fixed in patch 1/3.
Thanks for checking, I'll send out the new patch series in a moment,
Bastian
prev parent reply other threads:[~2012-10-19 10:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 9:58 [PATCH v2 0/2] Add DMA and device tree support to the flash controller FLCTL Bastian Hecht
2012-10-09 9:58 ` [PATCH v2 1/2] mtd: sh_flctl: Add DMA capabilty Bastian Hecht
2012-10-09 9:58 ` [PATCH v2 2/2] mtd: sh_flctl: Add device tree support Bastian Hecht
2012-10-17 11:23 ` [PATCH v2 0/2] Add DMA and device tree support to the flash controller FLCTL Artem Bityutskiy
2012-10-17 13:05 ` Bastian Hecht
2012-10-19 5:57 ` Artem Bityutskiy
2012-10-19 10:05 ` Bastian Hecht [this message]
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='CABYn4swnc5xT=gOCHk5wzQTHWe8TNOE5_o2A36xEgPSnDosSBQ@mail.gmail.com' \
--to=hechtb@googlemail.com \
--cc=linux-arm-kernel@lists.infradead.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).