]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
vm_event: rework inclusions to use arch-indipendent header
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Tue, 22 Aug 2023 06:53:24 +0000 (08:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Aug 2023 06:53:24 +0000 (08:53 +0200)
The arch-specific header <asm/vm_event.h> should be included by the
common header <xen/vm_event.h>, so that the latter can be included
in the source files.

This also resolves violations of MISRA C:2012 Rule 8.4 that were
caused by declarations for
'vm_event_{fill_regs,set_registers,monitor_next_interrupt}'
in <asm/vm_event.h> not being visible when
defining functions in 'xen/arch/x86/vm_event.c'

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/arm/include/asm/vm_event.h
xen/arch/arm/vm_event.c
xen/arch/x86/vm_event.c
xen/include/xen/vm_event.h

index abe7db1970cab6e102ae670f6ea15d7ddd7023e1..4d861373b38dd3eeb2c71a4d1703d6dc33e89e3f 100644 (file)
@@ -20,7 +20,6 @@
 #define __ASM_ARM_VM_EVENT_H__
 
 #include <xen/sched.h>
-#include <xen/vm_event.h>
 #include <public/domctl.h>
 
 static inline int vm_event_init_domain(struct domain *d)
index ba99f56eb20c3ecf2b639a8079c711584d5c7f78..ccfd25bbbca98b42ed58d9303a8b6b63a119bca9 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #include <xen/sched.h>
-#include <asm/vm_event.h>
+#include <xen/vm_event.h>
 
 void vm_event_fill_regs(vm_event_request_t *req)
 {
index 7027c08a926b3a9be0f296c56f7be5d4de537058..e6c7ad5337dd0a1b36d5c6990b9fe460eb4e363a 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <xen/sched.h>
 #include <xen/mem_access.h>
-#include <asm/vm_event.h>
+#include <xen/vm_event.h>
 
 /* Implicitly serialized by the domctl lock. */
 int vm_event_init_domain(struct domain *d)
index 92811d9110e5509009aaa47278d63643412bd0ee..9a86358b42aef775c7502bb5b69eaad3435ae31f 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <xen/sched.h>
 #include <public/vm_event.h>
+#include <asm/vm_event.h>
 
 struct vm_event_domain
 {