[PATCH] arch: powerpc: kvm: add signed type cast for comparation

Alexander Graf agraf at suse.de
Thu Aug 29 00:24:44 EST 2013


On 05.08.2013, at 07:50, Chen Gang wrote:

> 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 at asianux.com>
>> Looks right, thanks.
>> 
>> Acked-by: Paul Mackerras <paulus at samba.org>
>> 
>> 
> 
> Thank you very much.

Thanks, applied to kvm-ppc-queue.


Alex



More information about the Linuxppc-dev mailing list