summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2017-04-07 12:41:46 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-10 07:34:31 +0200
commit90e7a35e684fc66dcc05791c7b2cb73255a9fbcc (patch)
treec1fc9022a18e25643beb8d3e8ff5a51a1891743f
parent79d7972ef4c513dabb0afb84ef5739f88f26e1f7 (diff)
downloadbarebox-90e7a35e684fc66dcc05791c7b2cb73255a9fbcc.tar.gz
fs: squashfs: fix "no previous prototype for 'squashfs_set_rootarg'" warning
The patch fixes this compiler's warning: fs/squashfs/squashfs.c:115:6: warning: no previous prototype for 'squashfs_set_rootarg' [-Wmissing-prototypes] void squashfs_set_rootarg(struct squashfs_priv *priv, struct fs_device_d *fsdev) ^ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--fs/squashfs/squashfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/squashfs/squashfs.c b/fs/squashfs/squashfs.c
index 4f4a307..cf7431e 100644
--- a/fs/squashfs/squashfs.c
+++ b/fs/squashfs/squashfs.c
@@ -112,7 +112,8 @@ static struct inode *squashfs_findfile(struct super_block *sb,
return NULL;
}
-void squashfs_set_rootarg(struct squashfs_priv *priv, struct fs_device_d *fsdev)
+static void squashfs_set_rootarg(struct squashfs_priv *priv,
+ struct fs_device_d *fsdev)
{
struct ubi_volume_desc *ubi_vol;
struct ubi_volume_info vi = {};