Re: [PATCH] eccbuf is statically defined and always evaluate totrue

From: Samuel Tardieu
Date: Fri Oct 19 2007 - 15:59:59 EST


On 19/10, JÃrn Engel wrote:

| I assume you don't actually use this driver and just ran make
| randconfig or allyesconfig or so..

I tried the latest svn tip of GCC and it looks like this warning is
quite recent (and I happened to have this driver enabled as a module
in my kernel):

drivers/mtd/devices/doc2000.c: In function âdoc_readâ:
drivers/mtd/devices/doc2000.c:635: warning: the address of âeccbufâ will always evaluate as âtrueâ
drivers/mtd/devices/doc2000.c: In function âdoc_writeâ:
drivers/mtd/devices/doc2000.c:899: warning: the address of âeccbufâ will always evaluate as âtrueâ
drivers/mtd/devices/doc2001plus.c: In function âdoc_writeâ:
drivers/mtd/devices/doc2001plus.c:751: warning: the address of âeccbufâ will always evaluate as âtrueâ

-
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/