Skip to contentSkip to conversation

ppc: kvm: fix signedness warning

PATCH Applied Alexander Graf 2 participants 3 messages Nov 25, 2010 – Dec 8, 2010

lore
Share & tools
lore
#0 lore raw

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.

---
 target-ppc/kvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/kvm.c +1 -1
index 5cacef7..5caa07c 100644
@@ -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, &regs);
     if (ret < 0)
Signature · 1 line
1.6.0.2
#1 lore raw

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.

---
target-ppc/kvm.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/kvm.c +1 -1
index 5cacef7..5caa07c 100644
@@ -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, &regs);
    if (ret < 0)
Signature · 1 line
1.6.0.2
#2 lore raw
Quoted 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.

---
target-ppc/kvm.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/kvm.c +1 -1
index 5cacef7..5caa07c 100644
@@ -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, &regs);
    if (ret < 0)
Signature · 1 line
1.6.0.2