]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/mem_access: address violations of MISRA C:2012 Rule 8.3
authorFederico Serafini <federico.serafini@bugseng.com>
Tue, 17 Oct 2023 07:51:07 +0000 (09:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Oct 2023 07:51:07 +0000 (09:51 +0200)
Make function declarations and definitions consistent.
No functional change.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
xen/arch/x86/include/asm/mem_access.h
xen/arch/x86/mm/mem_access.c

index 8957e1181cc346f6df3a286ff3afbafe25c42ac3..1a52a103226e0496ae5768a67bf6ed0af192e82a 100644 (file)
@@ -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);
index c472fa1ee58b295ba8844bf0a9232d8a941d3194..3449e0ee85ffe1f202abd03021e191fd7db5839a 100644 (file)
@@ -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);