Skip to contentSkip to conversation

xen/arm: vtimer: Fix MISRA C 2012 Rule 8.4 violation

PATCH In review Xenia Ragiadakou 3 participants 5 messages Jun 21, 2022 – Jun 23, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 xen/arm: vtimer: Fix MISRA C 2012 Rule 8.4 violation

Include vtimer.h so that the declarations of vtimer functions with external linkage are visible before the function definitions.

---
 xen/arch/arm/vtimer.c | 1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/vtimer.c +1 -0
index 5bb5970f58..5f26463354 100644
@@ -29,6 +29,7 @@
 #include <asm/time.h>
 #include <asm/vgic.h>
 #include <asm/vreg.h>
+#include <asm/vtimer.h>
 #include <asm/regs.h>
 
 /*
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 xen/arm: vtimer: Remove duplicate header

The header file <asm/regs.h> is already included above and can be removed here.

---
 xen/arch/arm/vtimer.c | 1 -
 1 file changed, 1 deletion(-)
xen/arch/arm/vtimer.c +0 -1
index 5f26463354..6b78fea77d 100644
@@ -30,7 +30,6 @@
 #include <asm/vgic.h>
 #include <asm/vreg.h>
 #include <asm/vtimer.h>
-#include <asm/regs.h>
 
 /*
  * Check if regs is allowed access, user_gate is tail end of a
Signature · 1 line
2.34.1
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] xen/arm: vtimer: Remove duplicate header

Quoted 3 lines · Xenia Ragiadakou

The header file <asm/regs.h> is already included above and can be removed here.

Quoted 19 lines
---
 xen/arch/arm/vtimer.c | 1 -
 1 file changed, 1 deletion(-)
xen/arch/arm/vtimer.c +0 -1
index 5f26463354..6b78fea77d 100644
@@ -30,7 +30,6 @@
 #include <asm/vgic.h>
 #include <asm/vreg.h>
 #include <asm/vtimer.h>
-#include <asm/regs.h>
 
 /*
  * Check if regs is allowed access, user_gate is tail end of a
Signature · 1 line
2.34.1
Reviewed-by on v1 1/2
#3 lore raw
In reply to Xenia Ragiadakou
Quoted 4 lines · Xenia Ragiadakou

Include vtimer.h so that the declarations of vtimer functions with external linkage are visible before the function definitions.

Quoted 19 lines
---
 xen/arch/arm/vtimer.c | 1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/vtimer.c +1 -0
index 5bb5970f58..5f26463354 100644
@@ -29,6 +29,7 @@
 #include <asm/time.h>
 #include <asm/vgic.h>
 #include <asm/vreg.h>
+#include <asm/vtimer.h>
 #include <asm/regs.h>
 
 /*
Signature · 1 line
2.34.1
#4 lore raw

Hi Xenia,

Quoted 7 lines · Stefano Stabellini
Quoted 4 lines · Xenia Ragiadakou

Include vtimer.h so that the declarations of vtimer functions with external linkage are visible before the function definitions.

Like your other series, I wasn't able to find a cover letter so replying here.

I have now committed it. But in the future, please create a cover letter.

Cheers,

Signature · 1 line
Julien Grall