summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-03-15 07:57:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-18 10:10:40 +0100
commit27166fb0b1eaa538555fe1306b5ca8922520584f (patch)
tree5e02d175ea86ed2116d886be447663fc3a9e6720 /fs
parenta194fa7518d8677a364492fd973af6b9ce0f0541 (diff)
downloadbarebox-27166fb0b1eaa538555fe1306b5ca8922520584f.tar.gz
barebox-27166fb0b1eaa538555fe1306b5ca8922520584f.tar.xz
treewide: Make locally used functions static
Many functions are only used locally but still are globally visible. Make these function static. Avoids warnings generated with -Wmissing-prototypes Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/bpkfs.c2
-rw-r--r--fs/uimagefs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/bpkfs.c b/fs/bpkfs.c
index 655cde09b7..414108befe 100644
--- a/fs/bpkfs.c
+++ b/fs/bpkfs.c
@@ -25,7 +25,7 @@ static bool bpkfs_is_crc_file(struct bpkfs_handle_data *d)
return d->type & (1 << 31);
}
-const char* bpkfs_type_to_str(uint32_t type)
+static const char* bpkfs_type_to_str(uint32_t type)
{
switch (type) {
case BPKFS_TYPE_BL:
diff --git a/fs/uimagefs.c b/fs/uimagefs.c
index e5ada82da8..72641c58b5 100644
--- a/fs/uimagefs.c
+++ b/fs/uimagefs.c
@@ -25,7 +25,7 @@ static bool uimagefs_is_data_file(struct uimagefs_handle_data *d)
return d->type == UIMAGEFS_DATA;
}
-const char* uimagefs_type_to_str(enum uimagefs_type type)
+static const char* uimagefs_type_to_str(enum uimagefs_type type)
{
switch (type) {
case UIMAGEFS_DATA: