Skip to content

Commit

Permalink
Staging: hv: coding style cleanups for HvStatus.h
Browse files Browse the repository at this point in the history
Ugh, what a mess, it's all better now.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 6658be6 commit 034469e
Show file tree
Hide file tree
Showing 3 changed files with 418 additions and 630 deletions.
15 changes: 6 additions & 9 deletions drivers/staging/hv/Hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,20 +384,17 @@ void HvCleanup (void)
involves a hypercall.
--*/
HV_STATUS HvPostMessage(
union hv_connection_id connectionId,
enum hv_message_type messageType,
void * payload,
size_t payloadSize
)
u16 HvPostMessage(union hv_connection_id connectionId,
enum hv_message_type messageType,
void *payload, size_t payloadSize)
{
struct alignedInput {
u64 alignment8;
struct hv_input_post_message msg;
};

struct hv_input_post_message *alignedMsg;
HV_STATUS status;
u16 status;
unsigned long addr;

if (payloadSize > HV_MESSAGE_PAYLOAD_BYTE_COUNT)
Expand Down Expand Up @@ -437,9 +434,9 @@ HV_STATUS HvPostMessage(
involves a hypercall.
--*/
HV_STATUS HvSignalEvent(void)
u16 HvSignalEvent(void)
{
HV_STATUS status;
u16 status;

status = HvDoHypercall(HvCallSignalEvent, gHvContext.SignalEventParam, NULL) & 0xFFFF;

Expand Down
9 changes: 4 additions & 5 deletions drivers/staging/hv/Hv.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,11 @@ extern int HvInit(void);

extern void HvCleanup(void);

extern HV_STATUS HvPostMessage(union hv_connection_id connectionId,
enum hv_message_type messageType,
void *payload,
size_t payloadSize);
extern u16 HvPostMessage(union hv_connection_id connectionId,
enum hv_message_type messageType,
void *payload, size_t payloadSize);

extern HV_STATUS HvSignalEvent(void);
extern u16 HvSignalEvent(void);

extern int HvSynicInit(u32 irqVector);

Expand Down
Loading

0 comments on commit 034469e

Please sign in to comment.