Staging: hv: coding style cleanups for HvStatus.h

Ugh, what a mess, it's all better now.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Greg Kroah-Hartman
2009-08-20 12:14:11 -07:00
parent 6658be6ad7
commit 034469e633
3 changed files with 494 additions and 706 deletions

View File

@@ -384,12 +384,9 @@ Description:
involves a hypercall. involves a hypercall.
--*/ --*/
HV_STATUS HvPostMessage( u16 HvPostMessage(union hv_connection_id connectionId,
union hv_connection_id connectionId, enum hv_message_type messageType,
enum hv_message_type messageType, void *payload, size_t payloadSize)
void * payload,
size_t payloadSize
)
{ {
struct alignedInput { struct alignedInput {
u64 alignment8; u64 alignment8;
@@ -397,7 +394,7 @@ HV_STATUS HvPostMessage(
}; };
struct hv_input_post_message *alignedMsg; struct hv_input_post_message *alignedMsg;
HV_STATUS status; u16 status;
unsigned long addr; unsigned long addr;
if (payloadSize > HV_MESSAGE_PAYLOAD_BYTE_COUNT) if (payloadSize > HV_MESSAGE_PAYLOAD_BYTE_COUNT)
@@ -437,9 +434,9 @@ Description:
involves a hypercall. involves a hypercall.
--*/ --*/
HV_STATUS HvSignalEvent(void) u16 HvSignalEvent(void)
{ {
HV_STATUS status; u16 status;
status = HvDoHypercall(HvCallSignalEvent, gHvContext.SignalEventParam, NULL) & 0xFFFF; status = HvDoHypercall(HvCallSignalEvent, gHvContext.SignalEventParam, NULL) & 0xFFFF;

View File

@@ -132,12 +132,11 @@ extern int HvInit(void);
extern void HvCleanup(void); extern void HvCleanup(void);
extern HV_STATUS HvPostMessage(union hv_connection_id connectionId, extern u16 HvPostMessage(union hv_connection_id connectionId,
enum hv_message_type messageType, enum hv_message_type messageType,
void *payload, void *payload, size_t payloadSize);
size_t payloadSize);
extern HV_STATUS HvSignalEvent(void); extern u16 HvSignalEvent(void);
extern int HvSynicInit(u32 irqVector); extern int HvSynicInit(u32 irqVector);

File diff suppressed because it is too large Load Diff