From: Andrew Morton fs/ocfs2/alloc.c: In function 'ocfs2_insert_extent': fs/ocfs2/alloc.c:3724: warning: 'free_records' may be used uninitialized in this function Cc: Mark Fasheh Signed-off-by: Andrew Morton --- fs/ocfs2/alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN fs/ocfs2/alloc.c~ocfs2-warning-fix fs/ocfs2/alloc.c --- a/fs/ocfs2/alloc.c~ocfs2-warning-fix +++ a/fs/ocfs2/alloc.c @@ -3721,7 +3721,8 @@ int ocfs2_insert_extent(struct ocfs2_sup u8 flags, struct ocfs2_alloc_context *meta_ac) { - int status, free_records; + int status; + int uninitialized_var(free_records); struct buffer_head *last_eb_bh = NULL; struct ocfs2_insert_type insert = {0, }; struct ocfs2_extent_rec rec; _