Skip to contentSkip to conversation

linux-next: build warning after merge of the overlayfs tree

DISCUSSION Stephen Rothwell 2 participants 2 messages May 17, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Miklos,

After merging the overlayfs tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

fs/overlayfs/dir.c: In function 'ovl_rename':
fs/overlayfs/dir.c:1060:2: warning: 'newdentry' may be used uninitialized in this function [-Wmaybe-uninitialized]
dput(newdentry);
^
fs/overlayfs/dir.c:1062:2: warning: 'olddentry' may be used uninitialized in this function [-Wmaybe-uninitialized]
dput(olddentry);
^

Introduced by commit

02cac3227a28 ("ovl: mark upper dir with type origin entries "impure"")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 13 lines · Stephen Rothwell

Hi Miklos,

After merging the overlayfs tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

fs/overlayfs/dir.c: In function 'ovl_rename':
fs/overlayfs/dir.c:1060:2: warning: 'newdentry' may be used uninitialized in this function [-Wmaybe-uninitialized]
dput(newdentry);
^
fs/overlayfs/dir.c:1062:2: warning: 'olddentry' may be used uninitialized in this function [-Wmaybe-uninitialized]
dput(olddentry);
^

Quoted 4 lines

Introduced by commit

02cac3227a28 ("ovl: mark upper dir with type origin entries "impure"")

Posted a fix for that ("ovl: fix wrong error handling of ovl_set_impure()")

Thanks!