mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] gui: image_renderer: fix "no previous prototype for 'squashfs_set_rootarg'" warning
@ 2017-04-07  9:41 Antony Pavlov
  2017-04-10  5:35 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2017-04-07  9:41 UTC (permalink / raw)
  To: barebox

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>
---
 fs/squashfs/squashfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/squashfs/squashfs.c b/fs/squashfs/squashfs.c
index 4f4a307da..cf7431ee0 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 = {};
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-10  5:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07  9:41 [PATCH] gui: image_renderer: fix "no previous prototype for 'squashfs_set_rootarg'" warning Antony Pavlov
2017-04-10  5:35 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox