[PATCH 11/15] scripts: zynq_mkimage: Make locally used function static

Sascha Hauer s.hauer at pengutronix.de
Mon May 17 11:54:20 PDT 2021


parse_config() is defined and used only in one file. Make it static.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 scripts/zynq_mkimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/zynq_mkimage.c b/scripts/zynq_mkimage.c
index 8b95b41960..b611d5c69b 100644
--- a/scripts/zynq_mkimage.c
+++ b/scripts/zynq_mkimage.c
@@ -142,7 +142,7 @@ static char *readcmd(FILE *f)
 	}
 }
 
-int parse_config(char *buf, const char *filename)
+static int parse_config(char *buf, const char *filename)
 {
 	FILE *f;
 	int lineno = 0;
-- 
2.29.2




More information about the barebox mailing list