Re: [PATCH v2] ext4: fix Wunused-but-set-variable warning in ext4_add_entry()

From: Theodore Y. Ts'o
Date: Sat Dec 21 2019 - 21:01:44 EST


On Tue, Dec 17, 2019 at 10:46:49PM +0800, Yunfeng Ye wrote:
> Warning is found when compile with "-Wunused-but-set-variable":
>
> fs/ext4/namei.c: In function âext4_add_entryâ:
> fs/ext4/namei.c:2167:23: warning: variable âsbiâ set but not used
> [-Wunused-but-set-variable]
> struct ext4_sb_info *sbi;
> ^~~
> Fix this by moving the variable @sbi under CONFIG_UNICODE.
>
> Signed-off-by: Yunfeng Ye <yeyunfeng@xxxxxxxxxx>
> Reviewed-by: Ritesh Harjani <riteshh@xxxxxxxxxxxxx>

Thanks, applied.

- Ted