Re: [PATCH] mtd: mxc_nand: Fix compiler warnings

Dirk Behme
2012-08-04T15:47:17Z

On 30.07.2012 09:34, Uwe Kleine-König wrote:
> Hello,
>
> On Sat, Jul 28, 2012 at 11:05:10AM +0200, Dirk Behme wrote:
>> From: Dirk Behme<dirk.behme@googlemail.com>
>>
>> Fix the compiler warnings
>>
>> drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target type
>> drivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target type
>> drivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target type
>> drivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type
> These should be gone in next already.

Hmm, which next?

I tried linux-next [1] from today (next-20120803, 55fa9961f) and still get

> make drivers/mtd/nand/
...
CC drivers/mtd/nand/mxc_nand.o

drivers/mtd/nand/mxc_nand.c:1298: warning: initialization discards
qualifiers from pointer target type
drivers/mtd/nand/mxc_nand.c:1301: warning: initialization discards
qualifiers from pointer target type
drivers/mtd/nand/mxc_nand.c:1304: warning: initialization discards
qualifiers from pointer target type
drivers/mtd/nand/mxc_nand.c:1307: warning: initialization discards
qualifiers from pointer target type
drivers/mtd/nand/mxc_nand.c:1310: warning: initialization discards
qualifiers from pointer target type
CC drivers/mtd/nand/gpmi-nand/gpmi-nand.o
...

Sorry if I missed something ;)

Best regards

Dirk

[1]