From: Federico Serafini Date: Tue, 17 Oct 2023 07:51:07 +0000 (+0200) Subject: x86/mem_access: address violations of MISRA C:2012 Rule 8.3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4a106e1fb15bba48aaa06f62a21eabebe6057d4b;p=people%2Ftklengyel%2Fxen.git x86/mem_access: address violations of MISRA C:2012 Rule 8.3 Make function declarations and definitions consistent. No functional change. Signed-off-by: Federico Serafini Acked-by: Tamas K Lengyel Release-acked-by: Henry Wang --- diff --git a/xen/arch/x86/include/asm/mem_access.h b/xen/arch/x86/include/asm/mem_access.h index 8957e1181c..1a52a10322 100644 --- a/xen/arch/x86/include/asm/mem_access.h +++ b/xen/arch/x86/include/asm/mem_access.h @@ -39,7 +39,7 @@ int p2m_set_suppress_ve(struct domain *d, gfn_t gfn, bool suppress_ve, struct xen_hvm_altp2m_suppress_ve_multi; int p2m_set_suppress_ve_multi(struct domain *d, - struct xen_hvm_altp2m_suppress_ve_multi *suppress_ve); + struct xen_hvm_altp2m_suppress_ve_multi *sve); int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve, unsigned int altp2m_idx); diff --git a/xen/arch/x86/mm/mem_access.c b/xen/arch/x86/mm/mem_access.c index c472fa1ee5..3449e0ee85 100644 --- a/xen/arch/x86/mm/mem_access.c +++ b/xen/arch/x86/mm/mem_access.c @@ -70,7 +70,7 @@ static int _p2m_get_mem_access(struct p2m_domain *p2m, gfn_t gfn, } bool p2m_mem_access_emulate_check(struct vcpu *v, - const vm_event_response_t *rsp) + const struct vm_event_st *rsp) { xenmem_access_t access; bool violation = true; @@ -129,7 +129,7 @@ bool p2m_mem_access_emulate_check(struct vcpu *v, bool p2m_mem_access_check(paddr_t gpa, unsigned long gla, struct npfec npfec, - vm_event_request_t **req_ptr) + struct vm_event_st **req_ptr) { struct vcpu *v = current; gfn_t gfn = gaddr_to_gfn(gpa);