]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kvm: Add signed type cast for comparation
authorChen Gang <gang.chen@asianux.com>
Mon, 22 Jul 2013 06:32:35 +0000 (14:32 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 9 Aug 2013 08:06:51 +0000 (18:06 +1000)
commitc30297619212bd3ce4f76e89b3708c8c7cefb419
tree08102cb01f04e47aefc07aefbe94cb986f63e57b
parent8159ca94211a1fcf3ad27db1156db83a6a1559e7
powerpc/kvm: Add signed type cast for comparation

'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>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kvm/book3s_hv.c