From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang Sheng-Hui Subject: Re: [PATCH] jbd/jbd2: add pointer type conversion on void *arg from void * to journal_t * explicitly in kjournald/kjournald2 Date: Wed, 03 Aug 2011 10:55:57 +0800 Message-ID: <4E38B8BD.10406@gmail.com> References: <4E38AB50.9040804@gmail.com> <4E38AC92.4090501@cn.fujitsu.com> <4E38AFC2.3070608@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Li Zefan , Theodore Ts'o , Jan Kara , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org To: =?UTF-8?B?QW3DqXJpY28gV2FuZw==?= Return-path: Received: from mail-pz0-f42.google.com ([209.85.210.42]:61510 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752962Ab1HCC4S (ORCPT ); Tue, 2 Aug 2011 22:56:18 -0400 In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On 2011=E5=B9=B408=E6=9C=8803=E6=97=A5 10:52, Am=C3=A9rico Wang wrote: > On Wed, Aug 3, 2011 at 10:17 AM, Wang Sheng-Hui wr= ote: >> >> I remember any * can be assigned directly to void * in ANSI C, but >> void * should be converted to specific point * type. Right? >> >=20 > C99 6.3.2.3 Got it. Thanks, >=20 > A pointer to void may be converted to or from a pointer to any > incomplete or object > type. A pointer to any incomplete or object type may be converted to = a > pointer to void > and back again; the result shall compare equal to the original pointe= r. -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754137Ab1HCC4Y (ORCPT ); Tue, 2 Aug 2011 22:56:24 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:61510 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752962Ab1HCC4S (ORCPT ); Tue, 2 Aug 2011 22:56:18 -0400 Message-ID: <4E38B8BD.10406@gmail.com> Date: Wed, 03 Aug 2011 10:55:57 +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: =?UTF-8?B?QW3DqXJpY28gV2FuZw==?= CC: Li Zefan , "Theodore Ts'o" , Jan Kara , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] jbd/jbd2: add pointer type conversion on void *arg from void * to journal_t * explicitly in kjournald/kjournald2 References: <4E38AB50.9040804@gmail.com> <4E38AC92.4090501@cn.fujitsu.com> <4E38AFC2.3070608@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2011年08月03日 10:52, Américo Wang wrote: > On Wed, Aug 3, 2011 at 10:17 AM, Wang Sheng-Hui wrote: >> >> I remember any * can be assigned directly to void * in ANSI C, but >> void * should be converted to specific point * type. Right? >> > > C99 6.3.2.3 Got it. Thanks, > > A pointer to void may be converted to or from a pointer to any > incomplete or object > type. A pointer to any incomplete or object type may be converted to a > pointer to void > and back again; the result shall compare equal to the original pointer.