The VOID typedef is now removed from the Hyper-V driver code.
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Close the specified channel
--*/
-VOID
+void
VmbusChannelClose(
VMBUS_CHANNEL *Channel
)
This is invoked in the vmbus worker thread context.
--*/
-VOID
+void
VmbusOnChannelMessage(
void *Context
)
--*/
int
VmbusChannelRequestOffers(
- VOID
+ void
)
{
int ret=0;
--*/
void
VmbusChannelReleaseUnattachedChannels(
- VOID
+ void
)
{
LIST_ENTRY *entry;
UINT32 RingBufferGpadlHandle;
// Allocated memory for ring buffer
- VOID* RingBufferPages;
+ void * RingBufferPages;
UINT32 RingBufferPageCount;
RING_BUFFER_INFO Outbound; // send to parent
RING_BUFFER_INFO Inbound; // receive from parent
--*/
int
VmbusDisconnect(
- VOID
+ void
)
{
int ret=0;
Handler for events
--*/
-VOID
+void
VmbusOnEvents(
- VOID
+ void
)
{
int dword;
Cleanup routine for HvSynicInit().
--*/
-VOID
+void
HvSynicCleanup(
- VOID
+ void
)
{
HV_SYNIC_SINT sharedSint;
//
static int
HvInit(
- VOID
+ void
);
-static VOID
+static void
HvCleanup(
- VOID
+ void
);
static HV_STATUS
static HV_STATUS
HvSignalEvent(
- VOID
+ void
);
static int
UINT32 irqVector
);
-static VOID
+static void
HvSynicCleanup(
- VOID
+ void
);
#endif // __HV_H__
int
RingBufferInit(
RING_BUFFER_INFO *RingInfo,
- VOID *Buffer,
+ void *Buffer,
UINT32 BufferLen
)
{
RndisFilterQueryDevice(
RNDIS_DEVICE *Device,
UINT32 Oid,
- VOID *Result,
+ void *Result,
UINT32 *ResultSize
);
RndisFilterQueryDevice(
RNDIS_DEVICE *Device,
UINT32 Oid,
- VOID *Result,
+ void *Result,
UINT32 *ResultSize
)
{
// calls Hv to generate a port event. The other end
// receives the port event and parse the recvInterruptPage
// to see which bit is set
- VOID* InterruptPage;
- VOID* SendInterruptPage;
- VOID* RecvInterruptPage;
+ void * InterruptPage;
+ void * SendInterruptPage;
+ void * RecvInterruptPage;
// 2 pages - 1st page for parent->child notification and 2nd is child->parent notification
- VOID* MonitorPages;
+ void * MonitorPages;
LIST_ENTRY ChannelMsgList;
HANDLE ChannelMsgLock;
//
static int
VmbusConnect(
- VOID
+ void
);
static int
VmbusDisconnect(
- VOID
+ void
);
static int
UINT32 childRelId
);
-static VOID
+static void
VmbusOnEvents(
- VOID
+ void
);
/*
- * VOID
+ * void
* InitializeListHead(
* PLIST_ENTRY ListHead
* );
/*
- * VOID
+ * void
* RemoveEntryList(
* PLIST_ENTRY Entry
* );
/*
- * VOID
+ * void
* AttachList(
* PLIST_ENTRY ListHead,
* PLIST_ENTRY ListEntry
/*
- * VOID
+ * void
* InsertTailList(
* PLIST_ENTRY ListHead,
* PLIST_ENTRY Entry
/*
- * VOID
+ * void
* InsertHeadList(
* PLIST_ENTRY ListHead,
* PLIST_ENTRY Entry
/*
- * VOID
+ * void
* IterateListEntries(
* PLIST_ENTRY anchor,
* PLIST_ENTRY index,
/*
- * VOID
+ * void
* PushEntryList(
* PSINGLE_LIST_ENTRY ListHead,
* PSINGLE_LIST_ENTRY Entry
// Other types
//
typedef unsigned long SIZE_T;
-typedef void VOID;
//typedef unsigned char GUID[16];
typedef unsigned char BOOL;
typedef unsigned char BOOLEAN;
extern void* MemAllocZeroed(unsigned int size);
extern void* MemAllocAtomic(unsigned int size);
extern void MemFree(void* buf);
-extern void MemoryFence(VOID);
+extern void MemoryFence(void);
extern HANDLE TimerCreate(PFN_TIMER_CALLBACK pfnTimerCB, void* context);
extern void TimerClose(HANDLE hTimer);
return ret;
}
-HANDLE SpinlockCreate(VOID)
+HANDLE SpinlockCreate(void)
{
SPINLOCK* spin = kmalloc(sizeof(SPINLOCK), GFP_KERNEL);
if (!spin)
return spin;
}
-VOID SpinlockAcquire(HANDLE hSpin)
+void SpinlockAcquire(HANDLE hSpin)
{
SPINLOCK* spin = (SPINLOCK* )hSpin;
spin_lock_irqsave(&spin->lock, spin->flags);
}
-VOID SpinlockRelease(HANDLE hSpin)
+void SpinlockRelease(HANDLE hSpin)
{
SPINLOCK* spin = (SPINLOCK* )hSpin;
spin_unlock_irqrestore(&spin->lock, spin->flags);
}
-VOID SpinlockClose(HANDLE hSpin)
+void SpinlockClose(HANDLE hSpin)
{
SPINLOCK* spin = (SPINLOCK* )hSpin;
kfree(spin);