git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fe4e08
)
tools: mkimage: Mark copy_datafile() as static
author
Ilias Apalodimas
<ilias.apalodimas@linaro.org>
Fri, 29 Aug 2025 08:16:17 +0000
(11:16 +0300)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/tools/mkimage.c
b/tools/mkimage.c
index
361711c
..
8474539
100644
(file)
--- a/
tools/mkimage.c
+++ b/
tools/mkimage.c
@@
-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;