On 2018-11-07 3:55 a.m., [email protected] wrote:
From: "J. R. Okajima" <[email protected]>

commit 3a33601796d4139286c57cd15bf7d88d00aa7674 upstream

Signed-off-by: J. R. Okajima <[email protected]>

fs/aufs/vdir.c: In function 'fillvdir':
fs/aufs/vdir.c:493:15: warning: 'ino' may be used uninitialized in this 
function [-Wmaybe-uninitialized]
     arg->err = au_nhash_append_wh
                ^~~~~~~~~~~~~~~~~~
      (&arg->whlist, name, nlen, ino, d_type,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       arg->bindex, shwh);
       ~~~~~~~~~~~~~~~~~~

merged.

Bruce


Signed-off-by: He Zhe <[email protected]>
---
  fs/aufs/vdir.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/fs/aufs/vdir.c b/fs/aufs/vdir.c
index 5b78b5d..0b713a5 100644
--- a/fs/aufs/vdir.c
+++ b/fs/aufs/vdir.c
@@ -484,6 +484,7 @@ static int fillvdir(struct dir_context *ctx, const char 
*__name, int nlen,
                if (au_nhash_test_known_wh(&arg->whlist, name, nlen))
                        goto out; /* already whiteouted */
+ ino = 0; /* just to suppress a warning */
                if (shwh)
                        arg->err = au_wh_ino(sb, arg->bindex, h_ino, d_type,
                                             &ino);


--
_______________________________________________
linux-yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to