Mailing List Archive

[xen master] Arm: prune #include-s needed by domain.h
commit 6720345aaf82fc76dca084f3f7a577062f5ff0f3
Author: Jan Beulich <jbeulich@suse.com>
AuthorDate: Wed Jul 15 12:39:06 2020 +0200
Commit: Julien Grall <jgrall@amazon.com>
CommitDate: Mon Jul 20 17:16:27 2020 +0100

Arm: prune #include-s needed by domain.h

asm/domain.h is a dependency of xen/sched.h, and hence should not itself
include xen/sched.h. Nor should any of the other #include-s used by it.
While at it, also drop two other #include-s that aren't needed by this
particular header.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
---
xen/include/asm-arm/domain.h | 4 +---
xen/include/asm-arm/vfp.h | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/xen/include/asm-arm/domain.h b/xen/include/asm-arm/domain.h
index 4e2f582006..6819a3bf38 100644
--- a/xen/include/asm-arm/domain.h
+++ b/xen/include/asm-arm/domain.h
@@ -2,7 +2,7 @@
#define __ASM_DOMAIN_H__

#include <xen/cache.h>
-#include <xen/sched.h>
+#include <xen/timer.h>
#include <asm/page.h>
#include <asm/p2m.h>
#include <asm/vfp.h>
@@ -11,8 +11,6 @@
#include <asm/vgic.h>
#include <asm/vpl011.h>
#include <public/hvm/params.h>
-#include <xen/serial.h>
-#include <xen/rbtree.h>

struct hvm_domain
{
diff --git a/xen/include/asm-arm/vfp.h b/xen/include/asm-arm/vfp.h
index 5f10fe5962..142a91ef8b 100644
--- a/xen/include/asm-arm/vfp.h
+++ b/xen/include/asm-arm/vfp.h
@@ -1,7 +1,7 @@
#ifndef _ASM_VFP_H
#define _ASM_VFP_H

-#include <xen/sched.h>
+struct vcpu;

#if defined(CONFIG_ARM_32)
# include <asm/arm32/vfp.h>
--
generated by git-patchbot for /home/xen/git/xen.git#master