提交 034469e6 编写于 作者: G Greg Kroah-Hartman

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: NGreg Kroah-Hartman <gregkh@suse.de>
上级 6658be6a
......@@ -384,12 +384,9 @@ 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;
......@@ -397,7 +394,7 @@ HV_STATUS HvPostMessage(
};
struct hv_input_post_message *alignedMsg;
HV_STATUS status;
u16 status;
unsigned long addr;
if (payloadSize > HV_MESSAGE_PAYLOAD_BYTE_COUNT)
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册