Skip to content
Commit 6c8c0c4d authored by Chen Gang's avatar Chen Gang Committed by Marc Zyngier
Browse files

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: default avatarChen Gang <gang.chen@asianux.com>
[Marc: reformated the Subject line to fit the series]
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent f142e5ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment