From: Chen Gang <gang.chen@asianux.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Gleb Natapov <gleb@redhat.com>,
pbonzini@redhat.com, agraf@suse.de,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
kvm@vger.kernel.org, kvm-ppc@vger.kernel.org,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] arch: powerpc: kvm: add signed type cast for comparation
Date: Mon, 05 Aug 2013 05:50:03 +0000 [thread overview]
Message-ID: <51FF3D0B.6050609@asianux.com> (raw)
In-Reply-To: <20130805043406.GD19254@iris.ozlabs.ibm.com>
On 08/05/2013 12:34 PM, Paul Mackerras wrote:
> On Mon, Jul 22, 2013 at 02:32:35PM +0800, Chen Gang wrote:
>> > 'rmls' is 'unsigned long', lpcr_rmls() will return negative number when
>> > failure occurs, so it need a type cast for comparing.
>> >
>> > 'lpid' is 'unsigned long', kvmppc_alloc_lpid() return negative number
>> > when failure occurs, so it need a type cast for comparing.
>> >
>> >
>> > Signed-off-by: Chen Gang <gang.chen@asianux.com>
> Looks right, thanks.
>
> Acked-by: Paul Mackerras <paulus@samba.org>
>
>
Thank you very much.
--
Chen Gang
WARNING: multiple messages have this Message-ID (diff)
From: Chen Gang <gang.chen@asianux.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Gleb Natapov <gleb@redhat.com>,
kvm@vger.kernel.org, agraf@suse.de, kvm-ppc@vger.kernel.org,
pbonzini@redhat.com,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] arch: powerpc: kvm: add signed type cast for comparation
Date: Mon, 05 Aug 2013 13:50:03 +0800 [thread overview]
Message-ID: <51FF3D0B.6050609@asianux.com> (raw)
In-Reply-To: <20130805043406.GD19254@iris.ozlabs.ibm.com>
On 08/05/2013 12:34 PM, Paul Mackerras wrote:
> On Mon, Jul 22, 2013 at 02:32:35PM +0800, Chen Gang wrote:
>> > 'rmls' is 'unsigned long', lpcr_rmls() will return negative number when
>> > failure occurs, so it need a type cast for comparing.
>> >
>> > 'lpid' is 'unsigned long', kvmppc_alloc_lpid() return negative number
>> > when failure occurs, so it need a type cast for comparing.
>> >
>> >
>> > Signed-off-by: Chen Gang <gang.chen@asianux.com>
> Looks right, thanks.
>
> Acked-by: Paul Mackerras <paulus@samba.org>
>
>
Thank you very much.
--
Chen Gang
WARNING: multiple messages have this Message-ID (diff)
From: Chen Gang <gang.chen@asianux.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Gleb Natapov <gleb@redhat.com>,
pbonzini@redhat.com, agraf@suse.de,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
kvm@vger.kernel.org, kvm-ppc@vger.kernel.org,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] arch: powerpc: kvm: add signed type cast for comparation
Date: Mon, 05 Aug 2013 13:50:03 +0800 [thread overview]
Message-ID: <51FF3D0B.6050609@asianux.com> (raw)
In-Reply-To: <20130805043406.GD19254@iris.ozlabs.ibm.com>
On 08/05/2013 12:34 PM, Paul Mackerras wrote:
> On Mon, Jul 22, 2013 at 02:32:35PM +0800, Chen Gang wrote:
>> > 'rmls' is 'unsigned long', lpcr_rmls() will return negative number when
>> > failure occurs, so it need a type cast for comparing.
>> >
>> > 'lpid' is 'unsigned long', kvmppc_alloc_lpid() return negative number
>> > when failure occurs, so it need a type cast for comparing.
>> >
>> >
>> > Signed-off-by: Chen Gang <gang.chen@asianux.com>
> Looks right, thanks.
>
> Acked-by: Paul Mackerras <paulus@samba.org>
>
>
Thank you very much.
--
Chen Gang
next prev parent reply other threads:[~2013-08-05 5:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-22 6:32 [PATCH] arch: powerpc: kvm: add signed type cast for comparation Chen Gang
2013-07-22 6:32 ` Chen Gang
2013-07-22 6:32 ` Chen Gang
2013-07-30 2:56 ` Chen Gang
2013-07-30 2:56 ` Chen Gang
2013-07-30 2:56 ` Chen Gang
2013-08-05 4:34 ` Paul Mackerras
2013-08-05 4:34 ` Paul Mackerras
2013-08-05 4:34 ` Paul Mackerras
2013-08-05 5:50 ` Chen Gang [this message]
2013-08-05 5:50 ` Chen Gang
2013-08-05 5:50 ` Chen Gang
2013-08-28 14:24 ` Alexander Graf
2013-08-28 14:24 ` Alexander Graf
2013-08-28 14:24 ` Alexander Graf
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=51FF3D0B.6050609@asianux.com \
--to=gang.chen@asianux.com \
--cc=agraf@suse.de \
--cc=benh@kernel.crashing.org \
--cc=gleb@redhat.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
--cc=pbonzini@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.