Re: [PATCH] nwflash: fix build errors and warning
- From: Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx>
- Date: Sat, 26 Jul 2008 16:32:10 +0100
On Sun, Jul 27, 2008 at 12:02:20AM +0900, Akinobu Mita wrote:
On Sat, Jul 26, 2008 at 03:18:08PM +0100, Russell King - ARM Linux wrote:
On Fri, Jul 25, 2008 at 01:48:18AM -0700, akpm@xxxxxxxxxxxxxxxxxxxx wrote:
From: Akinobu Mita <akinobu.mita@xxxxxxxxx>
Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
Cc: Russell King <linux@xxxxxxxxxxxxxxxx>
Cc: Tim Schmielau <tim@xxxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Argh... Are people now submitting untested patches as a rule?
drivers/char/nwflash.c: In function 'flash_read':
drivers/char/nwflash.c:129: error: 'p' undeclared (first use in this function)
drivers/char/nwflash.c:129: error: (Each undeclared identifier is reported only once
drivers/char/nwflash.c:129: error: for each function it appears in.)
drivers/char/nwflash.c:129: error: 'count' undeclared (first use in this function)
drivers/char/nwflash.c:136: warning: passing argument 4 of 'simple_read_from_buffer' discards qualifiers from pointer target type
make[2]: *** [drivers/char/nwflash.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
Sorry. I'm preparing cross compiler. But this patch should fix this
problem.
I sort of did the same - but merely changing the names of the variables
generates other warnings. More complete (and build-tested) commit
queued up:
http://ftp.arm.linux.org.uk/git/gitweb.cgi?p=linux-2.6-arm.git;a=commitdiff;h=4ef584ba84125b67c17b5aded38e7783cd8cdef0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] nwflash: fix build errors and warning
- From: Akinobu Mita
- Re: [PATCH] nwflash: fix build errors and warning
- References:
- [PATCH] nwflash: fix build errors and warning
- From: Akinobu Mita
- [PATCH] nwflash: fix build errors and warning
- Prev by Date: Re: [PATCH] msdos fs: remove unsettable atari option
- Next by Date: Re: [PATCH] x86: usb debug port early console v4
- Previous by thread: [PATCH] nwflash: fix build errors and warning
- Next by thread: Re: [PATCH] nwflash: fix build errors and warning
- Index(es):
Relevant Pages
|