]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
vmbus: cleanup header file style
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 5 Mar 2017 01:27:17 +0000 (18:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 06:10:49 +0000 (15:10 +0900)
Minor changes to align hyper-v vmbus include files with current
linux kernel style.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hyperv_vmbus.h
include/linux/hyperv.h

index b552c3a4dd3c828a6580a3a692d3c48184a80e1b..a69b52de8d560f70ac38b95d372ece9adb6295df 100644 (file)
@@ -218,8 +218,8 @@ struct hv_per_cpu_context {
 
 struct hv_context {
        /* 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;
 
        void *tsc_page;
@@ -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_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_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_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_onchannelcallback(void *);
+void hv_fcopy_onchannelcallback(void *context);
 void vmbus_initiate_unload(bool crash);
 
 static inline void hv_poll_channel(struct vmbus_channel *channel,
index 2b1ed66824bef3abc341305c05a4d56f3d4bbafc..de9b80ff6698a3b26d2624153a5a1c10af1e8db0 100644 (file)
@@ -524,10 +524,10 @@ struct vmbus_channel_open_channel {
        u32 target_vp;
 
        /*
-       * The upstream ring buffer begins at offset zero in the memory
-       * described by RingBufferGpadlHandle. The downstream ring buffer
-       * follows it at this offset (in pages).
-       */
+        * The upstream ring buffer begins at offset zero in the memory
+        * described by RingBufferGpadlHandle. The downstream ring buffer
+        * follows it at this offset (in pages).
+        */
        u32 downstream_ringbuffer_pageoffset;
 
        /* User-specific data to be passed along to the server endpoint. */
@@ -1006,7 +1006,7 @@ extern int vmbus_open(struct vmbus_channel *channel,
                            u32 recv_ringbuffersize,
                            void *userdata,
                            u32 userdatalen,
-                           void(*onchannel_callback)(void *context),
+                           void (*onchannel_callback)(void *context),
                            void *context);
 
 extern void vmbus_close(struct vmbus_channel *channel);
@@ -1421,7 +1421,7 @@ struct hyperv_service_callback {
        char *log_msg;
        uuid_le data;
        struct vmbus_channel *channel;
-       void (*callback) (void *context);
+       void (*callback)(void *context);
 };
 
 #define MAX_SRV_VER    0x7ffffff