[PATCH] mtd: mxc_nand: Fix sparse warning

Fabio Estevam festevam at gmail.com
Tue Feb 12 15:50:17 EST 2013


Hi Ezequiel,

On Tue, Feb 12, 2013 at 12:39 AM, Ezequiel Garcia <elezegarcia at gmail.com> wrote:

>> diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
>> index 45204e4..37037cb 100644
>> --- a/drivers/mtd/nand/mxc_nand.c
>> +++ b/drivers/mtd/nand/mxc_nand.c
>> @@ -266,7 +266,7 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = {
>>         }
>>  };
>>
>> -static const char const *part_probes[] = {
>> +static const char *part_probes[] = {
>>         "cmdlinepart", "RedBoot", "ofpart", NULL };
>>
>
> Are you sure checkpatch.pl didn't complain about this patch?

Yes, checkpatch complains, but it seems that checkpatch and sparse are
in contradiction then.

Regards,

Fabio Estevam



More information about the linux-mtd mailing list