Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: hv: make some vmbus_drv functions static

Now that vmbus_drv.c is merged with vmbus.c, some of the newly global
functions can now be marked static.

Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+3 -7
-4
drivers/staging/hv/vmbus_api.h
··· 115 115 void *Extension; 116 116 }; 117 117 118 - int vmbus_on_isr(struct hv_driver *drv); 119 - void vmbus_on_msg_dpc(struct hv_driver *drv); 120 - void vmbus_on_event_dpc(struct hv_driver *drv); 121 - 122 118 #endif /* _VMBUS_API_H_ */
+3 -3
drivers/staging/hv/vmbus_drv.c
··· 206 206 /* 207 207 * vmbus_on_msg_dpc - DPC routine to handle messages from the hypervisior 208 208 */ 209 - void vmbus_on_msg_dpc(struct hv_driver *drv) 209 + static void vmbus_on_msg_dpc(struct hv_driver *drv) 210 210 { 211 211 int cpu = smp_processor_id(); 212 212 void *page_addr = hv_context.synic_message_page[cpu]; ··· 253 253 /* 254 254 * vmbus_on_event_dpc - DPC routine to handle events from the hypervisior 255 255 */ 256 - void vmbus_on_event_dpc(struct hv_driver *drv) 256 + static void vmbus_on_event_dpc(struct hv_driver *drv) 257 257 { 258 258 /* TODO: Process any events */ 259 259 VmbusOnEvents(); ··· 262 262 /* 263 263 * vmbus_on_isr - ISR routine 264 264 */ 265 - int vmbus_on_isr(struct hv_driver *drv) 265 + static int vmbus_on_isr(struct hv_driver *drv) 266 266 { 267 267 int ret = 0; 268 268 int cpu = smp_processor_id();