Commit 2a9d7de2 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Greg Kroah-Hartman

vmbus: cleanup header file style

Minor changes to align hyper-v vmbus include files with current
linux kernel style.
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e6242fa0
...@@ -218,8 +218,8 @@ struct hv_per_cpu_context { ...@@ -218,8 +218,8 @@ struct hv_per_cpu_context {
struct hv_context { struct hv_context {
/* We only support running on top of Hyper-V /* We only support running on top of Hyper-V
* So at this point this really can only contain the Hyper-V ID * So at this point this really can only contain the Hyper-V ID
*/ */
u64 guestid; u64 guestid;
void *tsc_page; void *tsc_page;
...@@ -403,17 +403,17 @@ int vmbus_post_msg(void *buffer, size_t buflen, bool can_sleep); ...@@ -403,17 +403,17 @@ int vmbus_post_msg(void *buffer, size_t buflen, bool can_sleep);
void vmbus_on_event(unsigned long data); void vmbus_on_event(unsigned long data);
void vmbus_on_msg_dpc(unsigned long data); void vmbus_on_msg_dpc(unsigned long data);
int hv_kvp_init(struct hv_util_service *); int hv_kvp_init(struct hv_util_service *srv);
void hv_kvp_deinit(void); void hv_kvp_deinit(void);
void hv_kvp_onchannelcallback(void *); void hv_kvp_onchannelcallback(void *context);
int hv_vss_init(struct hv_util_service *); int hv_vss_init(struct hv_util_service *srv);
void hv_vss_deinit(void); void hv_vss_deinit(void);
void hv_vss_onchannelcallback(void *); void hv_vss_onchannelcallback(void *context);
int hv_fcopy_init(struct hv_util_service *); int hv_fcopy_init(struct hv_util_service *srv);
void hv_fcopy_deinit(void); void hv_fcopy_deinit(void);
void hv_fcopy_onchannelcallback(void *); void hv_fcopy_onchannelcallback(void *context);
void vmbus_initiate_unload(bool crash); void vmbus_initiate_unload(bool crash);
static inline void hv_poll_channel(struct vmbus_channel *channel, static inline void hv_poll_channel(struct vmbus_channel *channel,
......
...@@ -524,10 +524,10 @@ struct vmbus_channel_open_channel { ...@@ -524,10 +524,10 @@ struct vmbus_channel_open_channel {
u32 target_vp; u32 target_vp;
/* /*
* The upstream ring buffer begins at offset zero in the memory * The upstream ring buffer begins at offset zero in the memory
* described by RingBufferGpadlHandle. The downstream ring buffer * described by RingBufferGpadlHandle. The downstream ring buffer
* follows it at this offset (in pages). * follows it at this offset (in pages).
*/ */
u32 downstream_ringbuffer_pageoffset; u32 downstream_ringbuffer_pageoffset;
/* User-specific data to be passed along to the server endpoint. */ /* User-specific data to be passed along to the server endpoint. */
...@@ -1006,7 +1006,7 @@ extern int vmbus_open(struct vmbus_channel *channel, ...@@ -1006,7 +1006,7 @@ extern int vmbus_open(struct vmbus_channel *channel,
u32 recv_ringbuffersize, u32 recv_ringbuffersize,
void *userdata, void *userdata,
u32 userdatalen, u32 userdatalen,
void(*onchannel_callback)(void *context), void (*onchannel_callback)(void *context),
void *context); void *context);
extern void vmbus_close(struct vmbus_channel *channel); extern void vmbus_close(struct vmbus_channel *channel);
...@@ -1421,7 +1421,7 @@ struct hyperv_service_callback { ...@@ -1421,7 +1421,7 @@ struct hyperv_service_callback {
char *log_msg; char *log_msg;
uuid_le data; uuid_le data;
struct vmbus_channel *channel; struct vmbus_channel *channel;
void (*callback) (void *context); void (*callback)(void *context);
}; };
#define MAX_SRV_VER 0x7ffffff #define MAX_SRV_VER 0x7ffffff
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment