mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH] gui: image_renderer: fix "no previous prototype for 'squashfs_set_rootarg'" warning
Date: Fri,  7 Apr 2017 12:41:46 +0300	[thread overview]
Message-ID: <20170407094146.8705-1-antonynpavlov@gmail.com> (raw)

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

             reply	other threads:[~2017-04-07  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-07  9:41 Antony Pavlov [this message]
2017-04-10  5:35 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170407094146.8705-1-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox