ppc: kvm: fix signedness warning
PATCH 1/1 ppc: kvm: fix signedness warning
I get a warning on a signed comparison with an unsigned variable, so let's make the variable signed and be happy.
Signed-off-by Alexander Graf <[email protected]>
--- target-ppc/kvm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/kvm.c +1 -1
@@ -132,7 +132,7 @@ int kvm_arch_get_registers(CPUState *env) {struct kvm_regs regs;struct kvm_sregs sregs; -uint32_t i, ret; +int i, ret; ret =kvm_vcpu_ioctl (env,KVM_GET_REGS , ®s);if (ret <0 )
Signature · 1 line
1.6.0.2
ping?
Quoted 25 lines · Alexander Graf
I get a warning on a signed comparison with an unsigned variable, so let's make the variable signed and be happy.
Signed-off-by Alexander Graf <[email protected]>---
target-ppc/kvm.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)target-ppc/kvm.c +1
-1@@ -132,7 +132,7 @@ int kvm_arch_get_registers(CPUState *env) {struct kvm_regs regs;struct kvm_sregs sregs; -uint32_t i, ret; +int i, ret; ret =kvm_vcpu_ioctl (env,KVM_GET_REGS , ®s);if (ret <0 )Signature · 1 line
1.6.0.2
Edgar E. Iglesias
AppliedQuoted 1 line · Alexander Graf
ping?
I've applied this, thanks.
Quoted 29 lines · Alexander Graf
Quoted 26 lines
I get a warning on a signed comparison with an unsigned variable, so let's make the variable signed and be happy.
Signed-off-by Alexander Graf <[email protected]>---
target-ppc/kvm.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)target-ppc/kvm.c +1
-1@@ -132,7 +132,7 @@ int kvm_arch_get_registers(CPUState *env) {struct kvm_regs regs;struct kvm_sregs sregs; -uint32_t i, ret; +int i, ret; ret =kvm_vcpu_ioctl (env,KVM_GET_REGS , ®s);if (ret <0 )Signature · 1 line
1.6.0.2