]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
tools: mkimage: Mark copy_datafile() as static
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 29 Aug 2025 08:16:17 +0000 (11:16 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 9 Sep 2025 18:44:07 +0000 (12:44 -0600)
The function is only used locally. Enabling -Wmissing-prototypes
triggers a warning. Mark it as static.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
tools/mkimage.c

index 361711c53b2b706fa6f1d321309b5856ee6a67f5..847453970ab5d24e58c640111a4d045260e590b5 100644 (file)
@@ -445,7 +445,7 @@ static void verify_image(const struct image_type_params *tparams)
        (void)close(ifd);
 }
 
-void copy_datafile(int ifd, char *file)
+static void copy_datafile(int ifd, char *file)
 {
        if (!file)
                return;