[U-Boot] [PATCH v3 08/13] fastboot: Fix parameter types in _fb_nand_write

Simon Glass sjg at chromium.org
Mon May 14 19:52:32 UTC 2018


On 14 May 2018 at 03:09, Alex Kiernan <alex.kiernan at gmail.com> wrote:
> Compiling on a 64 bit target the arguments to _fb_nand_write are
> incompatible:
>
>   drivers/fastboot/fb_nand.c: In function ‘_fb_nand_write’:
>   drivers/fastboot/fb_nand.c:101:42: warning: passing argument 3 of ‘nand_write_skip_bad’ from incompatible pointer type [-Wincompatible-pointer-types]
>     return nand_write_skip_bad(mtd, offset, &length, written,
>                                           ^
>   In file included from drivers/fastboot/fb_nand.c:16:0:
>   include/nand.h:107:5: note: expected ‘size_t * {aka long unsigned int *}’ but argument is of type ‘unsigned int *’
>    int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
>        ^~~~~~~~~~~~~~~~~~~
> Signed-off-by: Alex Kiernan <alex.kiernan at gmail.com>
> ---
>
> Changes in v3:
> - new
>
> Changes in v2: None
>
>  drivers/fastboot/fb_nand.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the U-Boot mailing list