Skip to contentSkip to conversation

gui: image_renderer: fix "no previous prototype for 'squashfs_set_rootarg'" warning

PATCH In review Antony Pavlov 2 participants 2 messages Apr 7, 2017 – Apr 10, 2017 SquashFS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gui: image_renderer: 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)

        ^
---
 fs/squashfs/squashfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/squashfs/squashfs.c +2 -1
index 4f4a307da..cf7431ee0 100644
@@ -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 = {};
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 8 lines · Antony Pavlov

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)

        ^

---

Changed topic to "fs: squashfs:" and applied.

Sascha

Quoted 21 lines
 fs/squashfs/squashfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/squashfs/squashfs.c +2 -1
index 4f4a307da..cf7431ee0 100644
@@ -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 = {};
Signature · 1 line
2.11.0
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox