From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753578Ab2BPGBJ (ORCPT ); Thu, 16 Feb 2012 01:01:09 -0500 Received: from terminus.zytor.com ([198.137.202.10]:57043 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752834Ab2BPGBH (ORCPT ); Thu, 16 Feb 2012 01:01:07 -0500 References: <1328582733-31804-1-git-send-email-h.mitake@gmail.com> <2d1a4f3c-48b0-4105-bbc6-18d164512405@email.android.com> <4F33DC0F.7090704@zytor.com> User-Agent: K-9 Mail for Android In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] asm-generic: architecture independent readq/writeq for 32bit environment From: "hpanvin@gmail.com" Date: Wed, 15 Feb 2012 21:59:46 -0800 To: Hitoshi Mitake CC: mingo@elte.hu, linux-kernel@vger.kernel.org, Kashyap Desai , Len Brown , Ravi Anand , Vikas Chaudhary , Matthew Garrett , Jason Uhlenkott , James Bottomley , Thomas Gleixner , Roland Dreier , James Bottomley , Alan Cox , Matthew Wilcox , Andrew Morton , Linus Torvalds Message-ID: <25fbf6a9-f43c-4ee4-a3af-53af2dd55b87@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The point is that the type for all readq/writeq should be u64. Hitoshi Mitake wrote: >On Thu, Feb 9, 2012 at 23:45, H. Peter Anvin wrote: >> On 02/09/2012 05:37 AM, Hitoshi Mitake wrote: >>> >>> On Tue, Feb 7, 2012 at 12:47, hpanvin@gmail.com > wrote: >>>> >>>> Should be volatile u64 * not volatile void *... >>> >>> >>> Is this the type of parameters? >>> The parameters of atomic readq/writeq defined in >arch/x86/include/asm/io.h >>> are defined as void *. I think that atomic readq/writeq and >non-atomic >>> readq/writeq >>> should have same typed parameters and return values. >>> >> >> That sounds like a bug. >> >>        -hpa >> > >Sorry for my bad writing, I didn't mention: >the parameter type == the return value type > >My intention is: >parameter type of atomic readq/writeq == parameter type of non-atomic >readq/writeq >&& >return value type of atomic readq/writeq == return value type of >non-atomic readq/writeq > ># == means "should be equal" > >-- >Hitoshi Mitake >h.mitake@gmail.com -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.