diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2013-07-26 09:04:05 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-29 03:03:37 -0400 |
commit | 843200e7cc5de5f482ebe8acbf81e35a1c8e4a3d (patch) | |
tree | f4ae3272f9ba20e8ff6bcb46302b1d1109cea425 | |
parent | 78c4b59f721fb0c30e8520f1c8e78fbf47bddfdf (diff) |
KVM: s390: Fix sparse warnings in priv.c
sparse complained about the missing UL postfix for long constants.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/s390/kvm/priv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index a14c4b68aed7..697e34b59036 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c | |||
@@ -490,12 +490,12 @@ static int handle_epsw(struct kvm_vcpu *vcpu) | |||
490 | kvm_s390_get_regs_rre(vcpu, ®1, ®2); | 490 | kvm_s390_get_regs_rre(vcpu, ®1, ®2); |
491 | 491 | ||
492 | /* This basically extracts the mask half of the psw. */ | 492 | /* This basically extracts the mask half of the psw. */ |
493 | vcpu->run->s.regs.gprs[reg1] &= 0xffffffff00000000; | 493 | vcpu->run->s.regs.gprs[reg1] &= 0xffffffff00000000UL; |
494 | vcpu->run->s.regs.gprs[reg1] |= vcpu->arch.sie_block->gpsw.mask >> 32; | 494 | vcpu->run->s.regs.gprs[reg1] |= vcpu->arch.sie_block->gpsw.mask >> 32; |
495 | if (reg2) { | 495 | if (reg2) { |
496 | vcpu->run->s.regs.gprs[reg2] &= 0xffffffff00000000; | 496 | vcpu->run->s.regs.gprs[reg2] &= 0xffffffff00000000UL; |
497 | vcpu->run->s.regs.gprs[reg2] |= | 497 | vcpu->run->s.regs.gprs[reg2] |= |
498 | vcpu->arch.sie_block->gpsw.mask & 0x00000000ffffffff; | 498 | vcpu->arch.sie_block->gpsw.mask & 0x00000000ffffffffUL; |
499 | } | 499 | } |
500 | return 0; | 500 | return 0; |
501 | } | 501 | } |