Skip to contentSkip to conversation

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

PATCH In review Xenia Ragiadakou 4 participants 9 messages Jun 22, 2022 – Jun 23, 2022

lore
Share & tools
lore
#0 lore raw

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
index 3dc6819d56..5550f50f61 100644
@@ -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
#1 lore raw

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
index f8d8bbf281..de1af2ef8b 100644
@@ -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
Reviewed-by on v1 2/3
#2 lore raw

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 function list_sort(), which has external linkage, is visible before the function definition.

Cheers
Bertrand

Quoted 20 lines

---
xen/lib/list-sort.c | 1 +

1 file changed, 1 insertion(+)
xen/lib/list-sort.c +1 -0
index f8d8bbf281..de1af2ef8b 100644
@@ -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
Reviewed-by on v1 2/3
#3 lore raw

Re: [PATCH 2/3] xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation

In reply to Xenia Ragiadakou
Quoted 5 lines · Xenia Ragiadakou

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.

Quoted 19 lines
---
 xen/lib/list-sort.c | 1 +
 1 file changed, 1 insertion(+)
xen/lib/list-sort.c +1 -0
index f8d8bbf281..de1af2ef8b 100644
@@ -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
#4 lore raw

PATCH 3/3 xen/common: gunzip: Fix MISRA C 2012 Rule 8.4 violation

In reply to Xenia Ragiadakou

Include 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
index b9ecc17e44..aa16fec4bb 100644
@@ -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
Reviewed-by on v1 3/3
#5 lore raw

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 functions gzip_check() and perform_gunzip(), which have external linkage, are visible before the function definitions.

Cheers
Bertrand

Quoted 18 lines

---
xen/common/gunzip.c | 1 +

1 file changed, 1 insertion(+)
xen/common/gunzip.c +1 -0
index b9ecc17e44..aa16fec4bb 100644
@@ -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
Reviewed-by on v1 3/3
#6 lore raw

Re: [PATCH 3/3] xen/common: gunzip: Fix MISRA C 2012 Rule 8.4 violation

In reply to Xenia Ragiadakou
Quoted 5 lines · Xenia Ragiadakou

Include 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.

Quoted 17 lines
---
 xen/common/gunzip.c | 1 +
 1 file changed, 1 insertion(+)
xen/common/gunzip.c +1 -0
index b9ecc17e44..aa16fec4bb 100644
@@ -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
Reviewed-by on v1 1/3
#7 lore raw
In reply to Xenia Ragiadakou

Hi Xenia,

Quoted 7 lines · Xenia Ragiadakou

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.

Cheers
Bertrand

Quoted 19 lines

---
xen/arch/arm/shutdown.c | 1 +

1 file changed, 1 insertion(+)
xen/arch/arm/shutdown.c +1 -0
index 3dc6819d56..5550f50f61 100644
@@ -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
#8 lore raw

Hi Xenia,

Quoted 8 lines · Bertrand Marquis
Quoted 7 lines · Xenia Ragiadakou

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.

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