public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Wang Sheng-Hui <shhuiw@gmail.com>
To: "Theodore Ts'o" <tytso@mit.edu>, Jan Kara <jack@suse.cz>,
	linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] jbd/jbd2: add pointer type conversion on void *arg from void * to journal_t * explicitly in kjournald/kjournald2
Date: Wed, 03 Aug 2011 09:58:40 +0800	[thread overview]
Message-ID: <4E38AB50.9040804@gmail.com> (raw)

The patch is against 3.0

The arg of kjournald/kjournald2 is void *, and points to type
journal_t. We should convert it to journal_t * explicitly in
the kjournald/kjournald2 function body.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 fs/jbd/journal.c  |    2 +-
 fs/jbd2/journal.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index e2d4285..32956fd 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -116,7 +116,7 @@ static void commit_timeout(unsigned long __data)
 
 static int kjournald(void *arg)
 {
-	journal_t *journal = arg;
+	journal_t *journal = (journal_t *)arg;
 	transaction_t *transaction;
 
 	/*
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 0dfa5b5..c4f4bfc 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -129,7 +129,7 @@ static void commit_timeout(unsigned long __data)
 
 static int kjournald2(void *arg)
 {
-	journal_t *journal = arg;
+	journal_t *journal = (journal_t *)arg;
 	transaction_t *transaction;
 
 	/*
-- 
1.7.1

             reply	other threads:[~2011-08-03  1:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-03  1:58 Wang Sheng-Hui [this message]
2011-08-03  2:04 ` [PATCH] jbd/jbd2: add pointer type conversion on void *arg from void * to journal_t * explicitly in kjournald/kjournald2 Li Zefan
2011-08-03  2:17   ` Wang Sheng-Hui
2011-08-03  2:31     ` Li Zefan
2011-08-03  2:52     ` Américo Wang
2011-08-03  2:55       ` Wang Sheng-Hui
2011-08-03  3:24     ` Arnaud Lacombe
2011-08-03  5:38   ` Jesper Juhl

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=4E38AB50.9040804@gmail.com \
    --to=shhuiw@gmail.com \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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