[PATCH] scripts/kwbimage: Fix a build warning

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Sep 15 05:37:21 EDT 2020


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)
 {
 	int i;
 	for (i = 0; nand_ecc_modes[i].name; i++)
-- 
2.27.0




More information about the barebox mailing list