[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC 1/4] x86/ioemul: address MISRA C:2012 Rule 9.3



Partially explicitly initalized .matches arrays result in violations
of Rule 9.3; this is resolved by using designated initializers,
which is permitted by the Rule.

Mechanical changes.

Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
---
 xen/arch/x86/ioport_emulate.c | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/xen/arch/x86/ioport_emulate.c b/xen/arch/x86/ioport_emulate.c
index 6caeb3d470ce..4f8d5136746d 100644
--- a/xen/arch/x86/ioport_emulate.c
+++ b/xen/arch/x86/ioport_emulate.c
@@ -44,57 +44,57 @@ static const struct dmi_system_id __initconstrel 
ioport_quirks_tbl[] = {
     {
         .ident = "HP ProLiant DL3xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL3"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL3"),
         },
     },
     {
         .ident = "HP ProLiant DL5xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL5"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL5"),
         },
     },
     {
         .ident = "HP ProLiant DL7xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL7"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL7"),
         },
     },
     {
         .ident = "HP ProLiant ML3xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML3"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML3"),
         },
     },
     {
         .ident = "HP ProLiant ML5xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML5"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML5"),
         },
     },
     {
         .ident = "HP ProLiant BL2xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL2"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL2"),
         },
     },
     {
         .ident = "HP ProLiant BL4xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL4"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL4"),
         },
     },
     {
         .ident = "HP ProLiant BL6xx",
         .matches = {
-            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
-            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL6"),
+            [0] = DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
+            [1] = DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL6"),
         },
     },
     { }
--
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.