The patch titled Subject: fs/reiserfs/lbalance.c: remove set but not used variables has been added to the -mm tree. Its filename is fs-reiserfs-lbalancec-remove-set-but-not-used-variables.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/fs-reiserfs-lbalancec-remove-set-but-not-used-variables.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/fs-reiserfs-lbalancec-remove-set-but-not-used-variables.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: zhengbin <zhengbin13@xxxxxxxxxx> Subject: fs/reiserfs/lbalance.c: remove set but not used variables Fixes gcc '-Wunused-but-set-variable' warning: fs/reiserfs/lbalance.c: In function leaf_paste_entries: fs/reiserfs/lbalance.c:1325:9: warning: variable old_entry_num set but not used [-Wunused-but-set-variable] Link: http://lkml.kernel.org/r/1566379929-118398-4-git-send-email-zhengbin13@xxxxxxxxxx Signed-off-by: zhengbin <zhengbin13@xxxxxxxxxx> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/reiserfs/lbalance.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/fs/reiserfs/lbalance.c~fs-reiserfs-lbalancec-remove-set-but-not-used-variables +++ a/fs/reiserfs/lbalance.c @@ -1322,7 +1322,7 @@ void leaf_paste_entries(struct buffer_in char *item; struct reiserfs_de_head *deh; char *insert_point; - int i, old_entry_num; + int i; struct buffer_head *bh = bi->bi_bh; if (new_entry_count == 0) @@ -1362,7 +1362,6 @@ void leaf_paste_entries(struct buffer_in put_deh_location(&deh[i], deh_location(&deh[i]) + paste_size); - old_entry_num = ih_entry_count(ih); put_ih_entry_count(ih, ih_entry_count(ih) + new_entry_count); /* prepare space for pasted records */ _ Patches currently in -mm which might be from zhengbin13@xxxxxxxxxx are fs-reiserfs-journalc-remove-set-but-not-used-variables.patch fs-reiserfs-streec-remove-set-but-not-used-variables.patch fs-reiserfs-lbalancec-remove-set-but-not-used-variables.patch fs-reiserfs-objectidc-remove-set-but-not-used-variables.patch fs-reiserfs-printsc-remove-set-but-not-used-variables.patch fs-reiserfs-fix_nodec-remove-set-but-not-used-variables.patch fs-reiserfs-do_balanc-remove-set-but-not-used-variables.patch