diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-14 15:07:21 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:45 -0700 |
commit | e20f683b6451a39619cd67e20d69597070aa8d17 (patch) | |
tree | 16d688431b867e1a94c32149f47831d90197fc85 /drivers | |
parent | 8282c400144a83f85f637a5251740d670e392e84 (diff) |
Staging: hv: remove VOID typedef
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/hv/Channel.c | 2 | ||||
-rw-r--r-- | drivers/staging/hv/ChannelMgmt.c | 6 | ||||
-rw-r--r-- | drivers/staging/hv/ChannelMgmt.h | 2 | ||||
-rw-r--r-- | drivers/staging/hv/Connection.c | 6 | ||||
-rw-r--r-- | drivers/staging/hv/Hv.c | 4 | ||||
-rw-r--r-- | drivers/staging/hv/Hv.h | 12 | ||||
-rw-r--r-- | drivers/staging/hv/RingBuffer.c | 2 | ||||
-rw-r--r-- | drivers/staging/hv/RndisFilter.c | 4 | ||||
-rw-r--r-- | drivers/staging/hv/VmbusPrivate.h | 16 | ||||
-rw-r--r-- | drivers/staging/hv/include/List.h | 14 | ||||
-rw-r--r-- | drivers/staging/hv/include/osd.h | 3 | ||||
-rw-r--r-- | drivers/staging/hv/osd.c | 8 |
12 files changed, 39 insertions, 40 deletions
diff --git a/drivers/staging/hv/Channel.c b/drivers/staging/hv/Channel.c index e3dba14c9047..07fb5c7f91b7 100644 --- a/drivers/staging/hv/Channel.c +++ b/drivers/staging/hv/Channel.c @@ -677,7 +677,7 @@ Description: Close the specified channel --*/ -VOID +void VmbusChannelClose( VMBUS_CHANNEL *Channel ) diff --git a/drivers/staging/hv/ChannelMgmt.c b/drivers/staging/hv/ChannelMgmt.c index 73d47ba3bfea..9d8f4ef1e0b9 100644 --- a/drivers/staging/hv/ChannelMgmt.c +++ b/drivers/staging/hv/ChannelMgmt.c @@ -672,7 +672,7 @@ Description: This is invoked in the vmbus worker thread context. --*/ -VOID +void VmbusOnChannelMessage( void *Context ) @@ -722,7 +722,7 @@ Description: --*/ int VmbusChannelRequestOffers( - VOID + void ) { int ret=0; @@ -785,7 +785,7 @@ Description: --*/ void VmbusChannelReleaseUnattachedChannels( - VOID + void ) { LIST_ENTRY *entry; diff --git a/drivers/staging/hv/ChannelMgmt.h b/drivers/staging/hv/ChannelMgmt.h index 6d2805ea4a7d..511b80fa22d6 100644 --- a/drivers/staging/hv/ChannelMgmt.h +++ b/drivers/staging/hv/ChannelMgmt.h @@ -59,7 +59,7 @@ typedef struct _VMBUS_CHANNEL { 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 diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c index 139499040a8a..f3e1360564b4 100644 --- a/drivers/staging/hv/Connection.c +++ b/drivers/staging/hv/Connection.c @@ -195,7 +195,7 @@ Description: --*/ int VmbusDisconnect( - VOID + void ) { int ret=0; @@ -323,9 +323,9 @@ Description: Handler for events --*/ -VOID +void VmbusOnEvents( - VOID + void ) { int dword; diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c index 801693df8432..3a37c12a59a8 100644 --- a/drivers/staging/hv/Hv.c +++ b/drivers/staging/hv/Hv.c @@ -621,9 +621,9 @@ Description: Cleanup routine for HvSynicInit(). --*/ -VOID +void HvSynicCleanup( - VOID + void ) { HV_SYNIC_SINT sharedSint; diff --git a/drivers/staging/hv/Hv.h b/drivers/staging/hv/Hv.h index d5a327b948b0..b75ad5df23ff 100644 --- a/drivers/staging/hv/Hv.h +++ b/drivers/staging/hv/Hv.h @@ -150,12 +150,12 @@ static inline void WriteMsr(int msr, UINT64 val) // static int HvInit( - VOID + void ); -static VOID +static void HvCleanup( - VOID + void ); static HV_STATUS @@ -168,7 +168,7 @@ HvPostMessage( static HV_STATUS HvSignalEvent( - VOID + void ); static int @@ -176,9 +176,9 @@ HvSynicInit( UINT32 irqVector ); -static VOID +static void HvSynicCleanup( - VOID + void ); #endif // __HV_H__ diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c index cdfd45af93a7..a8df47e13eb2 100644 --- a/drivers/staging/hv/RingBuffer.c +++ b/drivers/staging/hv/RingBuffer.c @@ -301,7 +301,7 @@ Description: int RingBufferInit( RING_BUFFER_INFO *RingInfo, - VOID *Buffer, + void *Buffer, UINT32 BufferLen ) { diff --git a/drivers/staging/hv/RndisFilter.c b/drivers/staging/hv/RndisFilter.c index c2cac2180a40..a455a89d7557 100644 --- a/drivers/staging/hv/RndisFilter.c +++ b/drivers/staging/hv/RndisFilter.c @@ -120,7 +120,7 @@ static int RndisFilterQueryDevice( RNDIS_DEVICE *Device, UINT32 Oid, - VOID *Result, + void *Result, UINT32 *ResultSize ); @@ -585,7 +585,7 @@ static int RndisFilterQueryDevice( RNDIS_DEVICE *Device, UINT32 Oid, - VOID *Result, + void *Result, UINT32 *ResultSize ) { diff --git a/drivers/staging/hv/VmbusPrivate.h b/drivers/staging/hv/VmbusPrivate.h index 1b2a1dc74481..1e54b2463f96 100644 --- a/drivers/staging/hv/VmbusPrivate.h +++ b/drivers/staging/hv/VmbusPrivate.h @@ -73,12 +73,12 @@ typedef struct _VMBUS_CONNECTION { // 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; @@ -138,12 +138,12 @@ GetChannelFromRelId( // static int VmbusConnect( - VOID + void ); static int VmbusDisconnect( - VOID + void ); static int @@ -157,9 +157,9 @@ VmbusSetEvent( UINT32 childRelId ); -static VOID +static void VmbusOnEvents( - VOID + void ); diff --git a/drivers/staging/hv/include/List.h b/drivers/staging/hv/include/List.h index 117a45fcca6f..6cfe7dfd66eb 100644 --- a/drivers/staging/hv/include/List.h +++ b/drivers/staging/hv/include/List.h @@ -44,7 +44,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; /* - * VOID + * void * InitializeListHead( * PLIST_ENTRY ListHead * ); @@ -132,7 +132,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; /* - * VOID + * void * RemoveEntryList( * PLIST_ENTRY Entry * ); @@ -148,7 +148,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; /* - * VOID + * void * AttachList( * PLIST_ENTRY ListHead, * PLIST_ENTRY ListEntry @@ -168,7 +168,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; /* - * VOID + * void * InsertTailList( * PLIST_ENTRY ListHead, * PLIST_ENTRY Entry @@ -188,7 +188,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; /* - * VOID + * void * InsertHeadList( * PLIST_ENTRY ListHead, * PLIST_ENTRY Entry @@ -207,7 +207,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; /* - * VOID + * void * IterateListEntries( * PLIST_ENTRY anchor, * PLIST_ENTRY index, @@ -245,7 +245,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; /* - * VOID + * void * PushEntryList( * PSINGLE_LIST_ENTRY ListHead, * PSINGLE_LIST_ENTRY Entry diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h index 53a52cd9be38..c78dd62cf5f5 100644 --- a/drivers/staging/hv/include/osd.h +++ b/drivers/staging/hv/include/osd.h @@ -131,7 +131,6 @@ typedef long long LONGLONG; // Other types // typedef unsigned long SIZE_T; -typedef void VOID; //typedef unsigned char GUID[16]; typedef unsigned char BOOL; typedef unsigned char BOOLEAN; @@ -219,7 +218,7 @@ extern void* MemAlloc(unsigned int size); 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); diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c index 4dda0dd40584..cf8091308d92 100644 --- a/drivers/staging/hv/osd.c +++ b/drivers/staging/hv/osd.c @@ -375,7 +375,7 @@ int WaitEventWaitEx(HANDLE hWait, UINT32 TimeoutInMs) return ret; } -HANDLE SpinlockCreate(VOID) +HANDLE SpinlockCreate(void) { SPINLOCK* spin = kmalloc(sizeof(SPINLOCK), GFP_KERNEL); if (!spin) @@ -387,21 +387,21 @@ HANDLE SpinlockCreate(VOID) 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); |