From: Anthony PERARD Date: Fri, 31 Oct 2014 21:25:36 +0000 (+0000) Subject: OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData X-Git-Tag: edk2-stable201903~10715 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe 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 Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16295 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/OvmfPkg/XenBusDxe/XenBus.c b/OvmfPkg/XenBusDxe/XenBus.c index a569cfa088..5baaddb143 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 };