[U-Boot] [PATCH v2 01/15] cmd: bootm: fix build when CONFIG_CMD_IMLS_NAND

Simon Glass sjg at chromium.org
Mon Feb 6 15:33:56 UTC 2017


On 5 February 2017 at 17:56, Tom Rini <trini at konsulko.com> wrote:
> On Tue, Jan 31, 2017 at 03:37:03PM -0600, Grygorii Strashko wrote:
>
>> Now when CONFIG_CMD_IMLS_NAND is enabled the u-boot build will fail,
>> because nand_read_skip_bad() function has been changed to accept more
>> parameters, hence fix it.
>>
>>  CC      cmd/bootm.o
>> cmd/bootm.c: In function 'nand_imls_legacyimage':
>> cmd/bootm.c:390:8: error: too few arguments to function 'nand_read_skip_bad'
>>   ret = nand_read_skip_bad(mtd, off, &len, imgdata);
>>         ^
>> In file included from cmd/bootm.c:18:0:
>> include/nand.h:101:5: note: declared here
>>  int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
>>      ^
>>  LD      drivers/block/built-in.o
>>
>> Signed-off-by: Grygorii Strashko <grygorii.strashko at ti.com>
>
> Reviewed-by: Tom Rini <trini at konsulko.com>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list