Patchwork ext4: Mark possibly unused variable in ext4_mb_normalize_request()

login
register
mail settings
Submitter Curt Wohlgemuth
Date Dec. 19, 2011, 11:10 p.m.
Message ID <1324336212-19700-1-git-send-email-curtw@google.com>
Download mbox | patch
Permalink /patch/132335/
State Accepted
Headers show

Comments

Curt Wohlgemuth - Dec. 19, 2011, 11:10 p.m.
The 'orig_size' local variable is only used in a call to
mb_debug().  Mark it with '__maybe_unused'.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>
---
 fs/ext4/mballoc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Theodore Ts'o - Feb. 13, 2012, 10:23 p.m.
On Mon, Dec 19, 2011 at 03:10:12PM -0800, Curt Wohlgemuth wrote:
> The 'orig_size' local variable is only used in a call to
> mb_debug().  Mark it with '__maybe_unused'.
> 
> Signed-off-by: Curt Wohlgemuth <curtw@google.com>

Thanks, applied.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index e2d8be8..7cb9a33 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -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;