diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c index 68f3a07371ed..7b480f0de5b0 100644 --- a/drivers/staging/hv/Connection.c +++ b/drivers/staging/hv/Connection.c @@ -29,7 +29,7 @@ /* Globals */ -VMBUS_CONNECTION gVmbusConnection = { +struct VMBUS_CONNECTION gVmbusConnection = { .ConnectState = Disconnected, .NextGpadlHandle = 0xE1E10, }; diff --git a/drivers/staging/hv/VmbusPrivate.h b/drivers/staging/hv/VmbusPrivate.h index ec9bfa409550..0adc02abf66b 100644 --- a/drivers/staging/hv/VmbusPrivate.h +++ b/drivers/staging/hv/VmbusPrivate.h @@ -63,7 +63,7 @@ enum VMBUS_CONNECT_STATE { #define MAX_SIZE_CHANNEL_MESSAGE HV_MESSAGE_PAYLOAD_BYTE_COUNT -typedef struct _VMBUS_CONNECTION { +struct VMBUS_CONNECTION { enum VMBUS_CONNECT_STATE ConnectState; @@ -94,7 +94,7 @@ typedef struct _VMBUS_CONNECTION { spinlock_t channel_lock; HANDLE WorkQueue; -} VMBUS_CONNECTION; +}; typedef struct _VMBUS_MSGINFO { @@ -112,7 +112,7 @@ typedef struct _VMBUS_MSGINFO { /* Externs */ -extern VMBUS_CONNECTION gVmbusConnection; +extern struct VMBUS_CONNECTION gVmbusConnection; /* General vmbus interface */