linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Fritz <chf.fritz@googlemail.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	dingdinghua <dingdinghua@nrchpc.ac.cn>,
	Joel Becker <joel.becker@oracle.com>,
	Mark Fasheh <mfasheh@suse.com>,
	linux-ext4@vger.kernel.org,
	kernel-janitors <kernel-janitors@vger.kernel.org>
Subject: [PATCH] jbd2: fix warning if CONFIG_JBD2_DEBUG is not used
Date: Wed, 11 Aug 2010 03:39:02 +0200	[thread overview]
Message-ID: <1281490742.4423.10.camel@lovely.krouter> (raw)

Commit 8dd420466c7bfc459fa04680bd5690bfc41a4553 makes variable ts unused
when CONFIG_JBD2_DEBUG is not used. This patch ifdefs it too.

fs/jbd2/transaction.c: In function ‘start_this_handle’:
fs/jbd2/transaction.c:98: warning: unused variable ‘ts’

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
 fs/jbd2/transaction.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index d95cc9d..745d3b2 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -95,7 +95,9 @@ static int start_this_handle(journal_t *journal, handle_t *handle,
 	int needed;
 	int nblocks = handle->h_buffer_credits;
 	transaction_t *new_transaction = NULL;
+#ifdef CONFIG_JBD2_DEBUG
 	unsigned long ts = jiffies;
+#endif
 
 	if (nblocks > journal->j_max_transaction_buffers) {
 		printk(KERN_ERR "JBD: %s wants too many credits (%d > %d)\n",
-- 
1.7.1



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

             reply	other threads:[~2010-08-11  1:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11  1:39 Christoph Fritz [this message]
2010-08-11  3:07 ` [PATCH] jbd2: fix warning if CONFIG_JBD2_DEBUG is not used Ted Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1281490742.4423.10.camel@lovely.krouter \
    --to=chf.fritz@googlemail.com \
    --cc=akpm@linux-foundation.org \
    --cc=dingdinghua@nrchpc.ac.cn \
    --cc=joel.becker@oracle.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=mfasheh@suse.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).