linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4: Mark possibly unused variable in ext4_mb_normalize_request()
@ 2011-12-19 23:10 Curt Wohlgemuth
  2012-02-13 22:23 ` Ted Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Curt Wohlgemuth @ 2011-12-19 23:10 UTC (permalink / raw)
  To: tytso; +Cc: linux-ext4, Curt Wohlgemuth

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(-)

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;
-- 
1.7.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ext4: Mark possibly unused variable in ext4_mb_normalize_request()
  2011-12-19 23:10 [PATCH] ext4: Mark possibly unused variable in ext4_mb_normalize_request() Curt Wohlgemuth
@ 2012-02-13 22:23 ` Ted Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2012-02-13 22:23 UTC (permalink / raw)
  To: Curt Wohlgemuth; +Cc: linux-ext4

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-13 22:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-19 23:10 [PATCH] ext4: Mark possibly unused variable in ext4_mb_normalize_request() Curt Wohlgemuth
2012-02-13 22:23 ` Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).