]> git.karo-electronics.de Git - karo-tx-linux.git/commit
autofs4: fix false positive compile error
authorIan Kent <raven@themaw.net>
Thu, 26 Jun 2014 00:42:17 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:17 +0000 (10:42 +1000)
commitaccde925068a115cece4f6ae0f048251d299a046
tree8310ee7477aa3ac01d714d9c90301ae603a827f3
parente9d2b7d83f108783fb7c94da79c0733a3f1e35a6
autofs4: fix false positive compile error

On strict build environments we can see:

fs/autofs4/inode.c: In function 'autofs4_fill_super':
fs/autofs4/inode.c:312: error: 'pgrp' may be used uninitialized in this
function
make[2]: *** [fs/autofs4/inode.o] Error 1
make[1]: *** [fs/autofs4] Error 2
make: *** [fs] Error 2
make: *** Waiting for unfinished jobs....

This is due to the use of pgrp_set being used to indicate pgrp has
has been set rather than initializing pgrp itself.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/autofs4/inode.c