Thread (2 messages) 2 messages, 2 authors, 2020-09-15

[PATCH] scripts/kwbimage: Fix a build warning

From: Uwe Kleine-König <hidden>
Date: 2020-09-15 09:37:25
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---
 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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help