diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-14 18:07:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 15:01:45 -0400 |
commit | e20f683b6451a39619cd67e20d69597070aa8d17 (patch) | |
tree | 16d688431b867e1a94c32149f47831d90197fc85 /drivers/staging | |
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/staging')
-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 e3dba14c904..07fb5c7f91b 100644 --- a/drivers/staging/hv/Channel.c +++ b/drivers/staging/hv/Channel.c | |||
@@ -677,7 +677,7 @@ Description: | |||
677 | Close the specified channel | 677 | Close the specified channel |
678 | 678 | ||
679 | --*/ | 679 | --*/ |
680 | VOID | 680 | void |
681 | VmbusChannelClose( | 681 | VmbusChannelClose( |
682 | VMBUS_CHANNEL *Channel | 682 | VMBUS_CHANNEL *Channel |
683 | ) | 683 | ) |
diff --git a/drivers/staging/hv/ChannelMgmt.c b/drivers/staging/hv/ChannelMgmt.c index 73d47ba3bfe..9d8f4ef1e0b 100644 --- a/drivers/staging/hv/ChannelMgmt.c +++ b/drivers/staging/hv/ChannelMgmt.c | |||
@@ -672,7 +672,7 @@ Description: | |||
672 | This is invoked in the vmbus worker thread context. | 672 | This is invoked in the vmbus worker thread context. |
673 | 673 | ||
674 | --*/ | 674 | --*/ |
675 | VOID | 675 | void |
676 | VmbusOnChannelMessage( | 676 | VmbusOnChannelMessage( |
677 | void *Context | 677 | void *Context |
678 | ) | 678 | ) |
@@ -722,7 +722,7 @@ Description: | |||
722 | --*/ | 722 | --*/ |
723 | int | 723 | int |
724 | VmbusChannelRequestOffers( | 724 | VmbusChannelRequestOffers( |
725 | VOID | 725 | void |
726 | ) | 726 | ) |
727 | { | 727 | { |
728 | int ret=0; | 728 | int ret=0; |
@@ -785,7 +785,7 @@ Description: | |||
785 | --*/ | 785 | --*/ |
786 | void | 786 | void |
787 | VmbusChannelReleaseUnattachedChannels( | 787 | VmbusChannelReleaseUnattachedChannels( |
788 | VOID | 788 | void |
789 | ) | 789 | ) |
790 | { | 790 | { |
791 | LIST_ENTRY *entry; | 791 | LIST_ENTRY *entry; |
diff --git a/drivers/staging/hv/ChannelMgmt.h b/drivers/staging/hv/ChannelMgmt.h index 6d2805ea4a7..511b80fa22d 100644 --- a/drivers/staging/hv/ChannelMgmt.h +++ b/drivers/staging/hv/ChannelMgmt.h | |||
@@ -59,7 +59,7 @@ typedef struct _VMBUS_CHANNEL { | |||
59 | UINT32 RingBufferGpadlHandle; | 59 | UINT32 RingBufferGpadlHandle; |
60 | 60 | ||
61 | // Allocated memory for ring buffer | 61 | // Allocated memory for ring buffer |
62 | VOID* RingBufferPages; | 62 | void * RingBufferPages; |
63 | UINT32 RingBufferPageCount; | 63 | UINT32 RingBufferPageCount; |
64 | RING_BUFFER_INFO Outbound; // send to parent | 64 | RING_BUFFER_INFO Outbound; // send to parent |
65 | RING_BUFFER_INFO Inbound; // receive from parent | 65 | RING_BUFFER_INFO Inbound; // receive from parent |
diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c index 139499040a8..f3e1360564b 100644 --- a/drivers/staging/hv/Connection.c +++ b/drivers/staging/hv/Connection.c | |||
@@ -195,7 +195,7 @@ Description: | |||
195 | --*/ | 195 | --*/ |
196 | int | 196 | int |
197 | VmbusDisconnect( | 197 | VmbusDisconnect( |
198 | VOID | 198 | void |
199 | ) | 199 | ) |
200 | { | 200 | { |
201 | int ret=0; | 201 | int ret=0; |
@@ -323,9 +323,9 @@ Description: | |||
323 | Handler for events | 323 | Handler for events |
324 | 324 | ||
325 | --*/ | 325 | --*/ |
326 | VOID | 326 | void |
327 | VmbusOnEvents( | 327 | VmbusOnEvents( |
328 | VOID | 328 | void |
329 | ) | 329 | ) |
330 | { | 330 | { |
331 | int dword; | 331 | int dword; |
diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c index 801693df843..3a37c12a59a 100644 --- a/drivers/staging/hv/Hv.c +++ b/drivers/staging/hv/Hv.c | |||
@@ -621,9 +621,9 @@ Description: | |||
621 | Cleanup routine for HvSynicInit(). | 621 | Cleanup routine for HvSynicInit(). |
622 | 622 | ||
623 | --*/ | 623 | --*/ |
624 | VOID | 624 | void |
625 | HvSynicCleanup( | 625 | HvSynicCleanup( |
626 | VOID | 626 | void |
627 | ) | 627 | ) |
628 | { | 628 | { |
629 | HV_SYNIC_SINT sharedSint; | 629 | HV_SYNIC_SINT sharedSint; |
diff --git a/drivers/staging/hv/Hv.h b/drivers/staging/hv/Hv.h index d5a327b948b..b75ad5df23f 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) | |||
150 | // | 150 | // |
151 | static int | 151 | static int |
152 | HvInit( | 152 | HvInit( |
153 | VOID | 153 | void |
154 | ); | 154 | ); |
155 | 155 | ||
156 | static VOID | 156 | static void |
157 | HvCleanup( | 157 | HvCleanup( |
158 | VOID | 158 | void |
159 | ); | 159 | ); |
160 | 160 | ||
161 | static HV_STATUS | 161 | static HV_STATUS |
@@ -168,7 +168,7 @@ HvPostMessage( | |||
168 | 168 | ||
169 | static HV_STATUS | 169 | static HV_STATUS |
170 | HvSignalEvent( | 170 | HvSignalEvent( |
171 | VOID | 171 | void |
172 | ); | 172 | ); |
173 | 173 | ||
174 | static int | 174 | static int |
@@ -176,9 +176,9 @@ HvSynicInit( | |||
176 | UINT32 irqVector | 176 | UINT32 irqVector |
177 | ); | 177 | ); |
178 | 178 | ||
179 | static VOID | 179 | static void |
180 | HvSynicCleanup( | 180 | HvSynicCleanup( |
181 | VOID | 181 | void |
182 | ); | 182 | ); |
183 | 183 | ||
184 | #endif // __HV_H__ | 184 | #endif // __HV_H__ |
diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c index cdfd45af93a..a8df47e13eb 100644 --- a/drivers/staging/hv/RingBuffer.c +++ b/drivers/staging/hv/RingBuffer.c | |||
@@ -301,7 +301,7 @@ Description: | |||
301 | int | 301 | int |
302 | RingBufferInit( | 302 | RingBufferInit( |
303 | RING_BUFFER_INFO *RingInfo, | 303 | RING_BUFFER_INFO *RingInfo, |
304 | VOID *Buffer, | 304 | void *Buffer, |
305 | UINT32 BufferLen | 305 | UINT32 BufferLen |
306 | ) | 306 | ) |
307 | { | 307 | { |
diff --git a/drivers/staging/hv/RndisFilter.c b/drivers/staging/hv/RndisFilter.c index c2cac2180a4..a455a89d755 100644 --- a/drivers/staging/hv/RndisFilter.c +++ b/drivers/staging/hv/RndisFilter.c | |||
@@ -120,7 +120,7 @@ static int | |||
120 | RndisFilterQueryDevice( | 120 | RndisFilterQueryDevice( |
121 | RNDIS_DEVICE *Device, | 121 | RNDIS_DEVICE *Device, |
122 | UINT32 Oid, | 122 | UINT32 Oid, |
123 | VOID *Result, | 123 | void *Result, |
124 | UINT32 *ResultSize | 124 | UINT32 *ResultSize |
125 | ); | 125 | ); |
126 | 126 | ||
@@ -585,7 +585,7 @@ static int | |||
585 | RndisFilterQueryDevice( | 585 | RndisFilterQueryDevice( |
586 | RNDIS_DEVICE *Device, | 586 | RNDIS_DEVICE *Device, |
587 | UINT32 Oid, | 587 | UINT32 Oid, |
588 | VOID *Result, | 588 | void *Result, |
589 | UINT32 *ResultSize | 589 | UINT32 *ResultSize |
590 | ) | 590 | ) |
591 | { | 591 | { |
diff --git a/drivers/staging/hv/VmbusPrivate.h b/drivers/staging/hv/VmbusPrivate.h index 1b2a1dc7448..1e54b2463f9 100644 --- a/drivers/staging/hv/VmbusPrivate.h +++ b/drivers/staging/hv/VmbusPrivate.h | |||
@@ -73,12 +73,12 @@ typedef struct _VMBUS_CONNECTION { | |||
73 | // calls Hv to generate a port event. The other end | 73 | // calls Hv to generate a port event. The other end |
74 | // receives the port event and parse the recvInterruptPage | 74 | // receives the port event and parse the recvInterruptPage |
75 | // to see which bit is set | 75 | // to see which bit is set |
76 | VOID* InterruptPage; | 76 | void * InterruptPage; |
77 | VOID* SendInterruptPage; | 77 | void * SendInterruptPage; |
78 | VOID* RecvInterruptPage; | 78 | void * RecvInterruptPage; |
79 | 79 | ||
80 | // 2 pages - 1st page for parent->child notification and 2nd is child->parent notification | 80 | // 2 pages - 1st page for parent->child notification and 2nd is child->parent notification |
81 | VOID* MonitorPages; | 81 | void * MonitorPages; |
82 | LIST_ENTRY ChannelMsgList; | 82 | LIST_ENTRY ChannelMsgList; |
83 | HANDLE ChannelMsgLock; | 83 | HANDLE ChannelMsgLock; |
84 | 84 | ||
@@ -138,12 +138,12 @@ GetChannelFromRelId( | |||
138 | // | 138 | // |
139 | static int | 139 | static int |
140 | VmbusConnect( | 140 | VmbusConnect( |
141 | VOID | 141 | void |
142 | ); | 142 | ); |
143 | 143 | ||
144 | static int | 144 | static int |
145 | VmbusDisconnect( | 145 | VmbusDisconnect( |
146 | VOID | 146 | void |
147 | ); | 147 | ); |
148 | 148 | ||
149 | static int | 149 | static int |
@@ -157,9 +157,9 @@ VmbusSetEvent( | |||
157 | UINT32 childRelId | 157 | UINT32 childRelId |
158 | ); | 158 | ); |
159 | 159 | ||
160 | static VOID | 160 | static void |
161 | VmbusOnEvents( | 161 | VmbusOnEvents( |
162 | VOID | 162 | void |
163 | ); | 163 | ); |
164 | 164 | ||
165 | 165 | ||
diff --git a/drivers/staging/hv/include/List.h b/drivers/staging/hv/include/List.h index 117a45fcca6..6cfe7dfd66e 100644 --- a/drivers/staging/hv/include/List.h +++ b/drivers/staging/hv/include/List.h | |||
@@ -44,7 +44,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; | |||
44 | 44 | ||
45 | 45 | ||
46 | /* | 46 | /* |
47 | * VOID | 47 | * void |
48 | * InitializeListHead( | 48 | * InitializeListHead( |
49 | * PLIST_ENTRY ListHead | 49 | * PLIST_ENTRY ListHead |
50 | * ); | 50 | * ); |
@@ -132,7 +132,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; | |||
132 | 132 | ||
133 | 133 | ||
134 | /* | 134 | /* |
135 | * VOID | 135 | * void |
136 | * RemoveEntryList( | 136 | * RemoveEntryList( |
137 | * PLIST_ENTRY Entry | 137 | * PLIST_ENTRY Entry |
138 | * ); | 138 | * ); |
@@ -148,7 +148,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; | |||
148 | 148 | ||
149 | 149 | ||
150 | /* | 150 | /* |
151 | * VOID | 151 | * void |
152 | * AttachList( | 152 | * AttachList( |
153 | * PLIST_ENTRY ListHead, | 153 | * PLIST_ENTRY ListHead, |
154 | * PLIST_ENTRY ListEntry | 154 | * PLIST_ENTRY ListEntry |
@@ -168,7 +168,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; | |||
168 | 168 | ||
169 | 169 | ||
170 | /* | 170 | /* |
171 | * VOID | 171 | * void |
172 | * InsertTailList( | 172 | * InsertTailList( |
173 | * PLIST_ENTRY ListHead, | 173 | * PLIST_ENTRY ListHead, |
174 | * PLIST_ENTRY Entry | 174 | * PLIST_ENTRY Entry |
@@ -188,7 +188,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; | |||
188 | 188 | ||
189 | 189 | ||
190 | /* | 190 | /* |
191 | * VOID | 191 | * void |
192 | * InsertHeadList( | 192 | * InsertHeadList( |
193 | * PLIST_ENTRY ListHead, | 193 | * PLIST_ENTRY ListHead, |
194 | * PLIST_ENTRY Entry | 194 | * PLIST_ENTRY Entry |
@@ -207,7 +207,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; | |||
207 | 207 | ||
208 | 208 | ||
209 | /* | 209 | /* |
210 | * VOID | 210 | * void |
211 | * IterateListEntries( | 211 | * IterateListEntries( |
212 | * PLIST_ENTRY anchor, | 212 | * PLIST_ENTRY anchor, |
213 | * PLIST_ENTRY index, | 213 | * PLIST_ENTRY index, |
@@ -245,7 +245,7 @@ typedef DLIST_ENTRY *PLIST_ENTRY; | |||
245 | 245 | ||
246 | 246 | ||
247 | /* | 247 | /* |
248 | * VOID | 248 | * void |
249 | * PushEntryList( | 249 | * PushEntryList( |
250 | * PSINGLE_LIST_ENTRY ListHead, | 250 | * PSINGLE_LIST_ENTRY ListHead, |
251 | * PSINGLE_LIST_ENTRY Entry | 251 | * PSINGLE_LIST_ENTRY Entry |
diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h index 53a52cd9be3..c78dd62cf5f 100644 --- a/drivers/staging/hv/include/osd.h +++ b/drivers/staging/hv/include/osd.h | |||
@@ -131,7 +131,6 @@ typedef long long LONGLONG; | |||
131 | // Other types | 131 | // Other types |
132 | // | 132 | // |
133 | typedef unsigned long SIZE_T; | 133 | typedef unsigned long SIZE_T; |
134 | typedef void VOID; | ||
135 | //typedef unsigned char GUID[16]; | 134 | //typedef unsigned char GUID[16]; |
136 | typedef unsigned char BOOL; | 135 | typedef unsigned char BOOL; |
137 | typedef unsigned char BOOLEAN; | 136 | typedef unsigned char BOOLEAN; |
@@ -219,7 +218,7 @@ extern void* MemAlloc(unsigned int size); | |||
219 | extern void* MemAllocZeroed(unsigned int size); | 218 | extern void* MemAllocZeroed(unsigned int size); |
220 | extern void* MemAllocAtomic(unsigned int size); | 219 | extern void* MemAllocAtomic(unsigned int size); |
221 | extern void MemFree(void* buf); | 220 | extern void MemFree(void* buf); |
222 | extern void MemoryFence(VOID); | 221 | extern void MemoryFence(void); |
223 | 222 | ||
224 | extern HANDLE TimerCreate(PFN_TIMER_CALLBACK pfnTimerCB, void* context); | 223 | extern HANDLE TimerCreate(PFN_TIMER_CALLBACK pfnTimerCB, void* context); |
225 | extern void TimerClose(HANDLE hTimer); | 224 | extern void TimerClose(HANDLE hTimer); |
diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c index 4dda0dd4058..cf8091308d9 100644 --- a/drivers/staging/hv/osd.c +++ b/drivers/staging/hv/osd.c | |||
@@ -375,7 +375,7 @@ int WaitEventWaitEx(HANDLE hWait, UINT32 TimeoutInMs) | |||
375 | return ret; | 375 | return ret; |
376 | } | 376 | } |
377 | 377 | ||
378 | HANDLE SpinlockCreate(VOID) | 378 | HANDLE SpinlockCreate(void) |
379 | { | 379 | { |
380 | SPINLOCK* spin = kmalloc(sizeof(SPINLOCK), GFP_KERNEL); | 380 | SPINLOCK* spin = kmalloc(sizeof(SPINLOCK), GFP_KERNEL); |
381 | if (!spin) | 381 | if (!spin) |
@@ -387,21 +387,21 @@ HANDLE SpinlockCreate(VOID) | |||
387 | return spin; | 387 | return spin; |
388 | } | 388 | } |
389 | 389 | ||
390 | VOID SpinlockAcquire(HANDLE hSpin) | 390 | void SpinlockAcquire(HANDLE hSpin) |
391 | { | 391 | { |
392 | SPINLOCK* spin = (SPINLOCK* )hSpin; | 392 | SPINLOCK* spin = (SPINLOCK* )hSpin; |
393 | 393 | ||
394 | spin_lock_irqsave(&spin->lock, spin->flags); | 394 | spin_lock_irqsave(&spin->lock, spin->flags); |
395 | } | 395 | } |
396 | 396 | ||
397 | VOID SpinlockRelease(HANDLE hSpin) | 397 | void SpinlockRelease(HANDLE hSpin) |
398 | { | 398 | { |
399 | SPINLOCK* spin = (SPINLOCK* )hSpin; | 399 | SPINLOCK* spin = (SPINLOCK* )hSpin; |
400 | 400 | ||
401 | spin_unlock_irqrestore(&spin->lock, spin->flags); | 401 | spin_unlock_irqrestore(&spin->lock, spin->flags); |
402 | } | 402 | } |
403 | 403 | ||
404 | VOID SpinlockClose(HANDLE hSpin) | 404 | void SpinlockClose(HANDLE hSpin) |
405 | { | 405 | { |
406 | SPINLOCK* spin = (SPINLOCK* )hSpin; | 406 | SPINLOCK* spin = (SPINLOCK* )hSpin; |
407 | kfree(spin); | 407 | kfree(spin); |