summaryrefslogtreecommitdiff
path: root/fs/f2fs/xattr.h
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2012-12-01 01:55:12 (GMT)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-11 04:43:43 (GMT)
commitbe4124f8720ef83757a66caa46f6045f0292d1f4 (patch)
tree90e6c504654b3059b4d0a8fd1432947907fae18d /fs/f2fs/xattr.h
parent573ea5fcf0a65fea4811f82edd6dc6045c04edda (diff)
downloadlinux-fsl-qoriq-be4124f8720ef83757a66caa46f6045f0292d1f4.tar.xz
f2fs: fix the compiler warning for uninitialized use of variable
When CONFIG_CC_OPTIMIZE_FOR_SIZE is enabled in the kernel, -Os optimisation flag is passed to gcc for compilation, and somehow while trying to optimize the code, compiler is might not able to see the initialisation of variable ne struct variable inside the get_node_info() function and results into following warning: fs/f2fs/node.c: In function 'get_node_info': fs/f2fs/node.c:175:3: warning: 'ne.block_addr' may be used uninitialized in this function [-Wuninitialized] fs/f2fs/node.c:265:24: note: 'ne.block_addr' was declared here fs/f2fs/node.c:176:3: warning: 'ne.ino' may be used uninitialized in this function [-Wuninitialized] fs/f2fs/node.c:265:24: note: 'ne.ino' was declared here fs/f2fs/node.c:177:3: warning: 'ne.version' may be used uninitialized in this function [-Wuninitialized] fs/f2fs/node.c:265:24: note: 'ne.version' was declared here Hence, lets initialise the ne struct variable to zero, which will remove this warning and also doing this does not seems to making any impact on the code behavior. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Diffstat (limited to 'fs/f2fs/xattr.h')
0 files changed, 0 insertions, 0 deletions