KVM: s390: allow to compile without warning with W=1

-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE+SKTgaM0CPnbq/vKEXu8gLWmHHwFAmFVscoACgkQEXu8gLWm
 HHzC2A/8DXRlixedn2tC5RIrrm0dSWtz6XJBATVH0SiY3R8Z0u4zWs05jt2S5Z2w
 SpVzIgSm5HRZP68xRnJ/kiZeLiW/gKbxMRYwniok483DK0GcJiTIegJMYYl/jLZH
 aIFXxzPyAPdRwa503EUX61ehDE4HCaO4gctB7ZU1+jmTk27bV81NYAWsXSvH6FkC
 ZSenC/NZ6iZVMB78CLeb9GxykEaztc04/FhhtjwsPek62g0hsOe6nOlIFrf9N0q6
 PiZoNFalJUxxX1Qgaj4Jl7QEV+o7re4xalOlt+X7Rnh2AhGyNfoe8ZuCk0fRikjU
 GNbBEMy24r3DsMiHRpBXbPSrtCeahSRXNe9ewxGi7TYSpZvrFVEHb46HPBW+Kpux
 lh2Eur3Cd+M+vHeqAowBwT1iRvxQjlJ5Vhh0bhs+2t3iWxFlPwIjq2QzHMFPaii8
 M9lnrWhzQ9/IySjoMJEN5scrd7ZsVquVENm2B8zXCkvCT+pfAV/p+xrMIzuUt56B
 p0ESsuRoF0bYNqnheHJlv+AomO5talPxaBeMcmqFP7E2rlhqzd/+WIwOfYn7INhz
 A8a5u06oEDn96vixF1rAYCJg8JzXPQ3EGe4NAAchWRlHZc+z5ZH/gM6dFKiGAQed
 M6jmuEMe6DthtzpTF83lXwLktnyfv8bbKsVRSYhSrwC0VvkiqNc=
 =A8Ck
 -----END PGP SIGNATURE-----

Merge tag 'kvm-s390-master-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-master

KVM: s390: allow to compile without warning with W=1
This commit is contained in:
Paolo Bonzini 2021-10-04 03:58:25 -04:00
commit 2353e593a1
2 changed files with 15 additions and 1 deletions

View File

@ -894,6 +894,11 @@ int access_guest_real(struct kvm_vcpu *vcpu, unsigned long gra,
/**
* guest_translate_address - translate guest logical into guest absolute address
* @vcpu: virtual cpu
* @gva: Guest virtual address
* @ar: Access register
* @gpa: Guest physical address
* @mode: Translation access mode
*
* Parameter semantics are the same as the ones from guest_translate.
* The memory contents at the guest address are not changed.
@ -934,6 +939,11 @@ int guest_translate_address(struct kvm_vcpu *vcpu, unsigned long gva, u8 ar,
/**
* check_gva_range - test a range of guest virtual addresses for accessibility
* @vcpu: virtual cpu
* @gva: Guest virtual address
* @ar: Access register
* @length: Length of test range
* @mode: Translation access mode
*/
int check_gva_range(struct kvm_vcpu *vcpu, unsigned long gva, u8 ar,
unsigned long length, enum gacc_mode mode)
@ -956,6 +966,7 @@ int check_gva_range(struct kvm_vcpu *vcpu, unsigned long gva, u8 ar,
/**
* kvm_s390_check_low_addr_prot_real - check for low-address protection
* @vcpu: virtual cpu
* @gra: Guest real address
*
* Checks whether an address is subject to low-address protection and set
@ -979,6 +990,7 @@ int kvm_s390_check_low_addr_prot_real(struct kvm_vcpu *vcpu, unsigned long gra)
* @pgt: pointer to the beginning of the page table for the given address if
* successful (return value 0), or to the first invalid DAT entry in
* case of exceptions (return value > 0)
* @dat_protection: referenced memory is write protected
* @fake: pgt references contiguous guest memory block, not a pgtable
*/
static int kvm_s390_shadow_tables(struct gmap *sg, unsigned long saddr,

View File

@ -269,6 +269,7 @@ static int handle_prog(struct kvm_vcpu *vcpu)
/**
* handle_external_interrupt - used for external interruption interceptions
* @vcpu: virtual cpu
*
* This interception only occurs if the CPUSTAT_EXT_INT bit was set, or if
* the new PSW does not have external interrupts disabled. In the first case,
@ -315,7 +316,8 @@ static int handle_external_interrupt(struct kvm_vcpu *vcpu)
}
/**
* Handle MOVE PAGE partial execution interception.
* handle_mvpg_pei - Handle MOVE PAGE partial execution interception.
* @vcpu: virtual cpu
*
* This interception can only happen for guests with DAT disabled and
* addresses that are currently not mapped in the host. Thus we try to