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>
#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)
*/
#include <xen/sched.h>
-#include <asm/vm_event.h>
+#include <xen/vm_event.h>
void vm_event_fill_regs(vm_event_request_t *req)
{
#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)
#include <xen/sched.h>
#include <public/vm_event.h>
+#include <asm/vm_event.h>
struct vm_event_domain
{