[PATCH] scripts/kwbimage: Fix a build warning

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 15 08:34:38 EDT 2020


On Tue, Sep 15, 2020 at 11:37:21AM +0200, Uwe Kleine-König wrote:
> This fixes:
> 
> 	scripts/kwbimage.c:253:5: warning: no previous prototype for ‘image_nand_ecc_mode_id’ [-Wmissing-prototypes]
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
>  scripts/kwbimage.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/kwbimage.c b/scripts/kwbimage.c
> index db66f7060dcb..26eb07fa81bc 100644
> --- a/scripts/kwbimage.c
> +++ b/scripts/kwbimage.c
> @@ -250,7 +250,7 @@ static const char *image_nand_ecc_mode_name(unsigned int id)
>  	return NULL;
>  }
>  
> -int image_nand_ecc_mode_id(const char *nand_ecc_mode_name)
> +static int image_nand_ecc_mode_id(const char *nand_ecc_mode_name)

I already have this in another patch which also fixes this type of
problem for the other cases in scripts/

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list