Skip to content

Commit 1e1a76e

Browse files
olofjtytso
authored andcommitted
ext4: remove unused variable warning in parse_options()
Commit c33fbe8 ("ext4: Enable blocksize < pagesize for dioread_nolock") removed the only user of 'sbi' outside of the ifdef, so it caused a new warning: fs/ext4/super.c:2068:23: warning: unused variable 'sbi' [-Wunused-variable] Fixes: c33fbe8 ("ext4: Enable blocksize < pagesize for dioread_nolock") Signed-off-by: Olof Johansson <olof@lixom.net> Link: https://lore.kernel.org/r/20191111022523.34256-1-olof@lixom.net Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
1 parent 196624e commit 1e1a76e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ext4/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ static int parse_options(char *options, struct super_block *sb,
20512051
unsigned int *journal_ioprio,
20522052
int is_remount)
20532053
{
2054-
struct ext4_sb_info *sbi = EXT4_SB(sb);
2054+
struct ext4_sb_info __maybe_unused *sbi = EXT4_SB(sb);
20552055
char *p, __maybe_unused *usr_qf_name, __maybe_unused *grp_qf_name;
20562056
substring_t args[MAX_OPT_ARGS];
20572057
int token;

0 commit comments

Comments
 (0)