| To: | Matteo Croce <technoboy85@gmail.com> |
|---|---|
| Subject: | Re: [PATCH][MIPS][2/7] AR7: mtd partition map |
| From: | Geert Uytterhoeven <geert@linux-m68k.org> |
| Date: | Fri, 21 Sep 2007 10:18:05 +0200 (CEST) |
| Cc: | Christoph Hellwig <hch@lst.de>, linux-mips@linux-mips.org, Felix Fietkau <nbd@openwrt.org>, Eugene Konev <ejka@imfi.kspu.ru>, dwmw2@infradead.org, linux-mtd@lists.infradead.org, Andrew Morton <akpm@linux-foundation.org> |
| In-reply-to: | <200709202129.12261.technoboy85@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <200709201728.10866.technoboy85@gmail.com> <20070920175204.GA26132@lst.de> <200709202034.21764.technoboy85@gmail.com> <200709202129.12261.technoboy85@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Thu, 20 Sep 2007, Matteo Croce wrote:
> +static int create_mtd_partitions(struct mtd_info *master,
> + struct mtd_partition **pparts,
> + unsigned long origin)
> +{
[...]
> + master->read(master, offset,
> + sizeof(header), &len, (u_char *)&header);
^^^^^^^^^^^
Probably we should teach mtd to use `void *' for read and write buffers,
so all these ugly casts can go away...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|
| Previous by Date: | Re: [PATCH][MIPS][2/7] AR7: mtd partition map, Christoph Hellwig |
|---|---|
| Next by Date: | YAMON booting Linux kernels from malta board harddisk...., KokHow.Teh |
| Previous by Thread: | Re: [PATCH][MIPS][2/7] AR7: mtd partition map, Christoph Hellwig |
| Next by Thread: | [PATCH][MIPS][3/7] AR7: gpio char device, Matteo Croce |
| Indexes: | [Date] [Thread] [Top] [All Lists] |