From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Gang Date: Mon, 05 Aug 2013 05:50:03 +0000 Subject: Re: [PATCH] arch: powerpc: kvm: add signed type cast for comparation Message-Id: <51FF3D0B.6050609@asianux.com> List-Id: References: <51ECD203.9050507@asianux.com> <20130805043406.GD19254@iris.ozlabs.ibm.com> In-Reply-To: <20130805043406.GD19254@iris.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Paul Mackerras Cc: Gleb Natapov , pbonzini@redhat.com, agraf@suse.de, Benjamin Herrenschmidt , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, "linuxppc-dev@lists.ozlabs.org" 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 > Looks right, thanks. > > Acked-by: Paul Mackerras > > Thank you very much. -- Chen Gang