ext4: remove an unused variable warning with CONFIG_QUOTA=n
[ Upstream commit 3bbef91b ] The 'enable_quota' variable is only used in an CONFIG_QUOTA. With CONFIG_QUOTA=n, compiler causes a harmless warning: fs/ext4/super.c: In function ‘ext4_remount’: fs/ext4/super.c:5840:6: warning: variable ‘enable_quota’ set but not used [-Wunused-but-set-variable] int enable_quota = 0; ^~~~~ Move 'enable_quota' into the same #ifdef CONFIG_QUOTA block to remove an unused variable warning. Signed-off-by:Austin Kim <austindh.kim@gmail.com> Reviewed-by:
Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20210824034929.GA13415@raspberrypi Signed-off-by:
Theodore Ts'o <tytso@mit.edu> Stable-dep-of: a44be64b ("ext4: don't clear SB_RDONLY when remounting r/w until quota is re-enabled") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading