There's no need for xen/xenoprof.h to include the arch header when the
respective config option is off. The only compensation needed is for
svm.c to explicitly include the arch header instead of the common one
(matching what vmx.c and traps.c do).
With that Arm's header can be deleted, and neither RISC-V nor PPC will
need to introduce one.
While there also adjust and move the (prior) inclusion of inttypes.h.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com> # arm
+++ /dev/null
-#ifndef __ASM_XENOPROF_H__
-#define __ASM_XENOPROF_H__
-
-#endif /* __ASM_XENOPROF_H__ */
-/*
- * Local variables:
- * mode: C
- * c-file-style: "BSD"
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- */
#include <xen/lib.h>
#include <xen/sched.h>
#include <xen/trace.h>
-#include <xen/xenoprof.h>
#include <asm/amd.h>
#include <asm/apic.h>
#include <asm/processor.h>
#include <asm/p2m.h>
#include <asm/x86_emulate.h>
+#include <asm/xenoprof.h>
#include <public/sched.h>
#ifndef __XEN_XENOPROF_H__
#define __XEN_XENOPROF_H__
-#include <xen/inttypes.h>
-#include <asm/xenoprof.h>
-
#define PMU_OWNER_NONE 0
#define PMU_OWNER_XENOPROF 1
#define PMU_OWNER_HVM 2
#ifdef CONFIG_XENOPROF
+#include <xen/stdint.h>
+#include <asm/xenoprof.h>
+
struct domain;
struct vcpu;
struct cpu_user_regs;