]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
xen/arm: bugs: Move do_bug_frame to traps.h
authorJulien Grall <julien.grall@arm.com>
Wed, 31 Oct 2018 18:12:56 +0000 (18:12 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 9 Nov 2018 18:14:18 +0000 (10:14 -0800)
do_bug_frame is only necessary when trapping. This allows to remove
processor.h include.

However, time.h was missing an include resulting to compilation error if
processor.h is removed from bug.h.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm32/traps.c
xen/include/asm-arm/bug.h
xen/include/asm-arm/time.h
xen/include/asm-arm/traps.h

index 4f27543dec1f39fc23054a4bace48f8ca778d242..76f714a168199044e7e5039ea4f118567fd822cd 100644 (file)
@@ -22,6 +22,7 @@
 #include <public/xen.h>
 
 #include <asm/processor.h>
+#include <asm/traps.h>
 
 void do_trap_reset(struct cpu_user_regs *regs)
 {
index 90a59c972be5cc5e2cfcf4510752ec527dd9f202..36c803357c0866c691c9194e4852917fbfece480 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __ARM_BUG_H__
 #define __ARM_BUG_H__
 
-#include <asm/processor.h>
-
 #if defined(CONFIG_ARM_32)
 # include <asm/arm32/bug.h>
 #elif defined(CONFIG_ARM_64)
@@ -77,8 +75,6 @@ extern const struct bug_frame __start_bug_frames[],
                               __stop_bug_frames_1[],
                               __stop_bug_frames_2[];
 
-int do_bug_frame(const struct cpu_user_regs *regs, vaddr_t pc);
-
 #endif /* __ARM_BUG_H__ */
 /*
  * Local variables:
index 19a4515e72333c5115a914af65012b7c5a4ed45b..ea88e7630457e5106056250c02b1a58e5f513924 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ARM_TIME_H__
 #define __ARM_TIME_H__
 
+#include <asm/processor.h>
+
 #define DT_MATCH_TIMER                      \
     DT_MATCH_COMPATIBLE("arm,armv7-timer"), \
     DT_MATCH_COMPATIBLE("arm,armv8-timer")
index 70b52d1d1662984b57346f8dd357599074175f2c..d30ee1e01e4106dc0bbc863a8493fc68f6ac0b57 100644 (file)
@@ -43,6 +43,8 @@ void do_cp(struct cpu_user_regs *regs, const union hsr hsr);
 void do_trap_smc(struct cpu_user_regs *regs, const union hsr hsr);
 void do_trap_hvc_smccc(struct cpu_user_regs *regs);
 
+int do_bug_frame(const struct cpu_user_regs *regs, vaddr_t pc);
+
 #endif /* __ASM_ARM_TRAPS__ */
 /*
  * Local variables: