From patchwork Wed Aug 3 01:58:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Sheng-Hui X-Patchwork-Id: 108013 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 630EAB71C2 for ; Wed, 3 Aug 2011 11:59:20 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752139Ab1HCB7H (ORCPT ); Tue, 2 Aug 2011 21:59:07 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:61892 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812Ab1HCB7G (ORCPT ); Tue, 2 Aug 2011 21:59:06 -0400 Received: by pzk37 with SMTP id 37so666730pzk.1 for ; Tue, 02 Aug 2011 18:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=RM/CycnKlTTtPLtrv4QFstlZlQgpQ/rftSoLNAR8Wu4=; b=TPR4xW/Is+5lLDlhejJs1Bat06Ve7s4nvtirfC6HQQOt3HH6EEdEHB+BbR1qr6q3s7 dQjEzsHcMjTItIz4zz/JPru/IQ+Goc6tWwrS/OcddLIrMc0G16DZLlDuS4qz5/QAaNE5 Yuzk7yoWygkhU/hVq4+XQTsHLFj7S+oYlJEos= Received: by 10.142.149.20 with SMTP id w20mr4065719wfd.188.1312336745814; Tue, 02 Aug 2011 18:59:05 -0700 (PDT) Received: from [9.123.137.29] ([202.108.130.138]) by mx.google.com with ESMTPS id y18sm218470wff.20.2011.08.02.18.58.55 (version=SSLv3 cipher=OTHER); Tue, 02 Aug 2011 18:59:04 -0700 (PDT) Message-ID: <4E38AB50.9040804@gmail.com> Date: Wed, 03 Aug 2011 09:58:40 +0800 From: Wang Sheng-Hui User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: "Theodore Ts'o" , Jan Kara , 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 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 --- 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; /*