xen/arm: shutdown: Fix MISRA C 2012 Rule 8.4 violation
PATCH 1/3 xen/arm: shutdown: Fix MISRA C 2012 Rule 8.4 violation
Include header <xen/shutdown.h> so that the declarations of the functions machine_halt() and machine_restart(), which have external linkage, are visible before the function definitions.
--- xen/arch/arm/shutdown.c | 1 + 1 file changed, 1 insertion(+)
xen/arch/arm/shutdown.c +1 -0
@@ -2,6 +2,7 @@#include <xen/cpu.h> #include <xen/delay.h> #include <xen/lib.h> +#include <xen/shutdown.h> #include <xen/smp.h> #include <asm/platform.h> #include <asm/psci.h>
Signature · 1 line
2.34.1
PATCH 2/3 xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation
Include header <xen/list_sort.h> so that the declaration of the function list_sort(), which has external linkage, is visible before the function definition.
--- xen/lib/list-sort.c | 1 + 1 file changed, 1 insertion(+)
xen/lib/list-sort.c +1 -0
@@ -16,6 +16,7 @@*/ #include <xen/list.h> +#include <xen/list_sort.h> #define MAX_LIST_LENGTH_BITS 20
Signature · 1 line
2.34.1
Re: [PATCH 2/3] xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation
Hi Xenia,
Quoted 7 lines · Xenia Ragiadakou
Include header <
xen/list_sort.h> so that the declaration of the functionlist_sort(), which has external linkage, is visible before the function definition.Signed-off-by Xenia Ragiadakou <[email protected]>
Cheers
Bertrand
Quoted 20 lines
---
xen/lib/list-sort.c| 1 +1 file changed, 1 insertion(+)xen/lib/list-sort.c +1
-0@@ -16,6 +16,7 @@*/ #include <xen/list.h> +#include <xen/list_sort.h> #define MAX_LIST_LENGTH_BITS 20Signature · 1 line
2.34.1
Re: [PATCH 2/3] xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation
In reply to Xenia RagiadakouQuoted 5 lines · Xenia Ragiadakou
Include header <
xen/list_sort.h> so that the declaration of the functionlist_sort(), which has external linkage, is visible before the function definition.Signed-off-by Xenia Ragiadakou <[email protected]>
Quoted 19 lines
--- xen/lib/list-sort.c | 1 + 1 file changed, 1 insertion(+)xen/lib/list-sort.c +1
-0@@ -16,6 +16,7 @@*/ #include <xen/list.h> +#include <xen/list_sort.h> #define MAX_LIST_LENGTH_BITS 20Signature · 1 line
2.34.1
PATCH 3/3 xen/common: gunzip: Fix MISRA C 2012 Rule 8.4 violation
In reply to Xenia RagiadakouInclude header <xen/gunzip.h> so that the declarations of functions gzip_check() and perform_gunzip(), which have external linkage, are visible before the function definitions.
--- xen/common/gunzip.c | 1 + 1 file changed, 1 insertion(+)
xen/common/gunzip.c +1 -0
@@ -1,4 +1,5 @@#include <xen/errno.h> +#include <xen/gunzip.h> #include <xen/init.h> #include <xen/lib.h> #include <xen/mm.h>
Signature · 1 line
2.34.1
Re: [PATCH 3/3] xen/common: gunzip: Fix MISRA C 2012 Rule 8.4 violation
Hi Xenia,
Quoted 7 lines · Xenia Ragiadakou
Include header <
xen/gunzip.h> so that the declarations of functionsgzip_check()andperform_gunzip(), which have external linkage, are visible before the function definitions.Signed-off-by Xenia Ragiadakou <[email protected]>
Cheers
Bertrand
Quoted 18 lines
---
xen/common/gunzip.c| 1 +1 file changed, 1 insertion(+)xen/common/gunzip.c +1
-0@@ -1,4 +1,5 @@#include <xen/errno.h> +#include <xen/gunzip.h> #include <xen/init.h> #include <xen/lib.h> #include <xen/mm.h> Signature · 1 line
2.34.1
Re: [PATCH 3/3] xen/common: gunzip: Fix MISRA C 2012 Rule 8.4 violation
In reply to Xenia RagiadakouQuoted 5 lines · Xenia Ragiadakou
Include header <
xen/gunzip.h> so that the declarations of functionsgzip_check()andperform_gunzip(), which have external linkage, are visible before the function definitions.Signed-off-by Xenia Ragiadakou <[email protected]>
Quoted 17 lines
--- xen/common/gunzip.c | 1 + 1 file changed, 1 insertion(+)xen/common/gunzip.c +1
-0@@ -1,4 +1,5 @@#include <xen/errno.h> +#include <xen/gunzip.h> #include <xen/init.h> #include <xen/lib.h> #include <xen/mm.h> Signature · 1 line
2.34.1
Hi Xenia,
Quoted 7 lines · Xenia Ragiadakou
Include header <
xen/shutdown.h> so that the declarations of the functionsmachine_halt()andmachine_restart(), which have external linkage, are visible before the function definitions.Signed-off-by Xenia Ragiadakou <[email protected]>
Cheers
Bertrand
Quoted 19 lines
---
xen/arch/arm/shutdown.c| 1 +1 file changed, 1 insertion(+)xen/arch/arm/shutdown.c +1
-0@@ -2,6 +2,7 @@#include <xen/cpu.h> #include <xen/delay.h> #include <xen/lib.h> +#include <xen/shutdown.h> #include <xen/smp.h> #include <asm/platform.h> #include <asm/psci.h> Signature · 1 line
2.34.1
Hi Xenia,
Quoted 8 lines · Bertrand Marquis
Quoted 7 lines · Xenia Ragiadakou
Include header <
xen/shutdown.h> so that the declarations of the functionsmachine_halt()andmachine_restart(), which have external linkage, are visible before the function definitions.Signed-off-by Xenia Ragiadakou <[email protected]>Reviewed-by Bertrand Marquis <[email protected]>
I couldn't find a cover letter. So replying here.
The series is now committed.
In the future, please create a cover letter when you send multiple patches (git-format-patch should already do that for you).
Cheers,
Signature · 1 line
Julien Grall