Skip to content

Commit 71fb165

Browse files
huthbonzini
authored andcommitted
KVM: s390: Use "int" as return type for kvm_s390_get/set_skeys()
These two functions only return normal integers, so it does not make sense to declare the return type as "long" here. Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20230208140105.655814-3-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 67c4866 commit 71fb165

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/s390/kvm/kvm-s390.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ static int kvm_s390_vm_has_attr(struct kvm *kvm, struct kvm_device_attr *attr)
19891989
return ret;
19901990
}
19911991

1992-
static long kvm_s390_get_skeys(struct kvm *kvm, struct kvm_s390_skeys *args)
1992+
static int kvm_s390_get_skeys(struct kvm *kvm, struct kvm_s390_skeys *args)
19931993
{
19941994
uint8_t *keys;
19951995
uint64_t hva;
@@ -2037,7 +2037,7 @@ static long kvm_s390_get_skeys(struct kvm *kvm, struct kvm_s390_skeys *args)
20372037
return r;
20382038
}
20392039

2040-
static long kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args)
2040+
static int kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args)
20412041
{
20422042
uint8_t *keys;
20432043
uint64_t hva;

0 commit comments

Comments
 (0)