From: Andreas Gruenbacher There is a code path that passed size to ext2_xattr_set (ext3_xattr_set_handle) before initializing it. The callees don't use the value in that case, but gcc cannot tell. Always initialize size to get rid of the warnings. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton --- fs/ext2/acl.c | 2 +- fs/ext3/acl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN fs/ext2/acl.c~fix-two-ext-uninitialized-warnings fs/ext2/acl.c --- devel/fs/ext2/acl.c~fix-two-ext-uninitialized-warnings 2006-01-22 02:51:48.000000000 -0800 +++ devel-akpm/fs/ext2/acl.c 2006-01-22 02:51:48.000000000 -0800 @@ -220,7 +220,7 @@ ext2_set_acl(struct inode *inode, int ty struct ext2_inode_info *ei = EXT2_I(inode); int name_index; void *value = NULL; - size_t size; + size_t size = 0; int error; if (S_ISLNK(inode->i_mode)) diff -puN fs/ext3/acl.c~fix-two-ext-uninitialized-warnings fs/ext3/acl.c --- devel/fs/ext3/acl.c~fix-two-ext-uninitialized-warnings 2006-01-22 02:51:48.000000000 -0800 +++ devel-akpm/fs/ext3/acl.c 2006-01-22 02:51:48.000000000 -0800 @@ -226,7 +226,7 @@ ext3_set_acl(handle_t *handle, struct in struct ext3_inode_info *ei = EXT3_I(inode); int name_index; void *value = NULL; - size_t size; + size_t size = 0; int error; if (S_ISLNK(inode->i_mode)) _