[edk2] [PATCH 3/4] OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData

Subject: [edk2] [PATCH 3/4] OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData

From: Anthony PERARD <anthony.perard@citrix.com>

To: EDK2 devel <edk2-devel@lists.sourceforge.net>

Date: 2014-11-01 01:11:27

  • 2014-11-01 01:11:27  Anthony PERARD   [edk2] [PATCH 3/4] OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData
.. to avoid the use .member = value syntax as VS does not support it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anthony PERARD 
---
 OvmfPkg/XenBusDxe/XenBus.c | 53 +++++++++++++++++++++++++---------------------
 1 file changed, 29 insertions(+), 24 deletions(-)

diff --git a/OvmfPkg/XenBusDxe/XenBus.c b/OvmfPkg/XenBusDxe/XenBus.c
index a569cfa..5baaddb 100644
--- a/OvmfPkg/XenBusDxe/XenBus.c
+++ b/OvmfPkg/XenBusDxe/XenBus.c
@@ -348,28 +348,33 @@ Out:
 }
 
 STATIC XENBUS_PRIVATE_DATA gXenBusPrivateData = {
-  .Signature = XENBUS_PRIVATE_DATA_SIGNATURE,
-
-  .XenBusIo.XsRead = XenBusXenStoreRead,
-  .XenBusIo.XsBackendRead = XenBusXenStoreBackendRead,
-  .XenBusIo.XsPrintf = XenBusXenStoreSPrint,
-  .XenBusIo.XsRemove = XenBusXenStoreRemove,
-  .XenBusIo.XsTransactionStart = XenBusXenStoreTransactionStart,
-  .XenBusIo.XsTransactionEnd = XenBusXenStoreTransactionEnd,
-  .XenBusIo.SetState = XenBusSetState,
-  .XenBusIo.GrantAccess = XenBusGrantAccess,
-  .XenBusIo.GrantEndAccess = XenBusGrantEndAccess,
-  .XenBusIo.EventChannelAllocate = XenBusEventChannelAllocate,
-  .XenBusIo.EventChannelNotify = XenBusEventChannelNotify,
-  .XenBusIo.EventChannelClose = XenBusEventChannelClose,
-  .XenBusIo.RegisterWatch = XenBusRegisterWatch,
-  .XenBusIo.RegisterWatchBackend = XenBusRegisterWatchBackend,
-  .XenBusIo.UnregisterWatch = XenBusUnregisterWatch,
-  .XenBusIo.WaitForWatch = XenBusWaitForWatch,
-
-  .XenBusIo.Type = NULL,
-  .XenBusIo.Node = NULL,
-  .XenBusIo.Backend = NULL,
-
-  .Dev = NULL
+  XENBUS_PRIVATE_DATA_SIGNATURE,    // Signature
+  { NULL, NULL },                   // Link
+  NULL,                             // Handle
+  {                                 // XenBusIo
+    XenBusXenStoreRead,             // XenBusIo.XsRead
+    XenBusXenStoreBackendRead,      // XenBusIo.XsBackendRead
+    XenBusXenStoreSPrint,           // XenBusIo.XsPrintf
+    XenBusXenStoreRemove,           // XenBusIo.XsRemove
+    XenBusXenStoreTransactionStart, // XenBusIo.XsTransactionStart
+    XenBusXenStoreTransactionEnd,   // XenBusIo.XsTransactionEnd
+    XenBusSetState,                 // XenBusIo.SetState
+    XenBusGrantAccess,              // XenBusIo.GrantAccess
+    XenBusGrantEndAccess,           // XenBusIo.GrantEndAccess
+    XenBusEventChannelAllocate,     // XenBusIo.EventChannelAllocate
+    XenBusEventChannelNotify,       // XenBusIo.EventChannelNotify
+    XenBusEventChannelClose,        // XenBusIo.EventChannelClose
+    XenBusRegisterWatch,            // XenBusIo.RegisterWatch
+    XenBusRegisterWatchBackend,     // XenBusIo.RegisterWatchBackend
+    XenBusUnregisterWatch,          // XenBusIo.UnregisterWatch
+    XenBusWaitForWatch,             // XenBusIo.WaitForWatch
+
+    NULL,                           // XenBusIo.Type
+    0,                              // XenBusIo.DeviceId
+    NULL,                           // XenBusIo.Node
+    NULL,                           // XenBusIo.Backend
+  },
+
+  NULL,                             // Dev
+  NULL                              // DevicePath
 };
-- 
Anthony PERARD


------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel