xen/arm: vtimer: Fix MISRA C 2012 Rule 8.4 violation
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
@@ -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
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
@@ -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
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.Signed-off-by Xenia Ragiadakou <[email protected]>
Quoted 19 lines
--- xen/arch/arm/vtimer.c | 1 - 1 file changed, 1 deletion(-)xen/arch/arm/vtimer.c +0
-1@@ -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
Quoted 4 lines · Xenia Ragiadakou
Include
vtimer.hso that the declarations of vtimer functions with external linkage are visible before the function definitions.Signed-off-by Xenia Ragiadakou <[email protected]>
Quoted 19 lines
--- xen/arch/arm/vtimer.c | 1 + 1 file changed, 1 insertion(+)xen/arch/arm/vtimer.c +1
-0@@ -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
Hi Xenia,
Quoted 7 lines · Stefano Stabellini
Quoted 4 lines · Xenia Ragiadakou
Include
vtimer.hso that the declarations of vtimer functions with external linkage are visible before the function definitions.Signed-off-by Xenia Ragiadakou <[email protected]>Reviewed-by Stefano Stabellini <[email protected]>
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