arm64: KVM: use 'int' instead of 'u32' for variable 'target' in kvm_host.h.
authorChen Gang <gang.chen@asianux.com>
Mon, 22 Jul 2013 03:40:38 +0000 (04:40 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:17:59 +0000 (17:17 +0200)
commitfbcac5446f1c5be6e54e282e1dbed74c58671a72
treeeb925d1b02d4e03262bae810fb6871df1e480b94
parente336bcc2613d7332083819ac8f148313e9471f59
arm64: KVM: use 'int' instead of 'u32' for variable 'target' in kvm_host.h.

'target' will be set to '-1' in kvm_arch_vcpu_init(), and it need check
'target' whether less than zero or not in kvm_vcpu_initialized().

So need define target as 'int' instead of 'u32', just like ARM has done.

The related warning:

  arch/arm64/kvm/../../../arch/arm/kvm/arm.c:497:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Signed-off-by: Chen Gang <gang.chen@asianux.com>
[Marc: reformated the Subject line to fit the series]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit 6c8c0c4dc0e98ee2191211d66e9f876e95787073)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_host.h