[linux-yocto] [PATCH] aufs: tiny, suppress a warning
zhe.he at windriver.com
zhe.he at windriver.com
Wed Nov 7 00:55:41 PST 2018
From: "J. R. Okajima" <hooanon05g at gmail.com>
commit 3a33601796d4139286c57cd15bf7d88d00aa7674 upstream
Signed-off-by: J. R. Okajima <hooanon05g at gmail.com>
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);
~~~~~~~~~~~~~~~~~~
Signed-off-by: He Zhe <zhe.he at windriver.com>
---
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);
--
2.7.4
More information about the linux-yocto
mailing list