Skip to contentSkip to conversation

ext4: Mark possibly unused variable in ext4_mb_normalize_request()

PATCH Applied Curt Wohlgemuth 2 participants 2 messages Dec 19, 2011 – Feb 13, 2012 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: Mark possibly unused variable in ext4_mb_normalize_request()

The 'orig_size' local variable is only used in a call to mb_debug(). Mark it with '__maybe_unused'.

---
 fs/ext4/mballoc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
fs/ext4/mballoc.c +2 -1
index e2d8be8..7cb9a33 100644
@@ -2911,7 +2911,8 @@ ext4_mb_normalize_request(struct ext4_allocation_context *ac,
 	struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb);
 	int bsbits, max;
 	ext4_lblk_t end;
-	loff_t size, orig_size, start_off;
+	loff_t size, start_off;
+	loff_t orig_size __maybe_unused;
 	ext4_lblk_t start;
 	struct ext4_inode_info *ei = EXT4_I(ac->ac_inode);
 	struct ext4_prealloc_space *pa;
Signature · 1 line
1.7.3.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Curt Wohlgemuth

The 'orig_size' local variable is only used in a call to mb_debug(). Mark it with '__maybe_unused'.

Thanks, applied.

- Ted