From: Eldad Zack Date: Sun, 22 Apr 2012 15:50:52 +0000 (+0200) Subject: super.c: unused variable warning without CONFIG_QUOTA X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db7e5c668e1b16061fe2d94d3cba022dd360c5d4;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git super.c: unused variable warning without CONFIG_QUOTA sb info is only checked with quota support. fs/ext4/super.c: In function ‘parse_options’: fs/ext4/super.c:1600:23: warning: unused variable ‘sbi’ [-Wunused-variable] Signed-off-by: Eldad Zack Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 6da193564e43..e1fb1d5de58e 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1597,7 +1597,9 @@ static int parse_options(char *options, struct super_block *sb, unsigned int *journal_ioprio, int is_remount) { +#ifdef CONFIG_QUOTA struct ext4_sb_info *sbi = EXT4_SB(sb); +#endif char *p; substring_t args[MAX_OPT_ARGS]; int token;