diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2016-05-09 13:08:07 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2016-06-10 12:07:28 +0200 |
commit | fe69eabf8deb85ae8b2958830ea3b2911e332820 (patch) | |
tree | 156a0a01fd476348801e780a7c1edbff4f6d33ed /arch | |
parent | 154c8c19c35b6da94a623cb793458e203572083d (diff) | |
download | op-kernel-dev-fe69eabf8deb85ae8b2958830ea3b2911e332820.zip op-kernel-dev-fe69eabf8deb85ae8b2958830ea3b2911e332820.tar.gz |
KVM: s390: storage keys fit into a char
No need to convert the storage key into an unsigned long, the target
function expects a char as argument.
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index ad166c6..49c6039 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -1120,8 +1120,7 @@ static long kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) break; } - r = set_guest_storage_key(current->mm, hva, - (unsigned long)keys[i], 0); + r = set_guest_storage_key(current->mm, hva, keys[i], 0); if (r) break; } |