[PATCH 2/2] ext4: Elide an unused variable warning in __ext4_fill_super()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i is only used under CONFIG_QUOTA, so mark it as __maybe_unused to
avoid a warning.

Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
---
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 09f3e1d714d6..3bf2449befcc 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -5197,7 +5197,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
 	ext4_fsblk_t logical_sb_block;
 	struct inode *root;
 	int ret = -ENOMEM;
-	unsigned int i;
+	unsigned int __maybe_unused i;
 	int needs_recovery;
 	int err = 0;
 	ext4_group_t first_not_zeroed;
-- 
2.40.0




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux