Commit cef6dbfa authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6d26e38f
...@@ -115,8 +115,4 @@ struct hv_device { ...@@ -115,8 +115,4 @@ struct hv_device {
void *Extension; void *Extension;
}; };
int vmbus_on_isr(struct hv_driver *drv);
void vmbus_on_msg_dpc(struct hv_driver *drv);
void vmbus_on_event_dpc(struct hv_driver *drv);
#endif /* _VMBUS_API_H_ */ #endif /* _VMBUS_API_H_ */
...@@ -206,7 +206,7 @@ static void VmbusOnCleanup(struct hv_driver *drv) ...@@ -206,7 +206,7 @@ static void VmbusOnCleanup(struct hv_driver *drv)
/* /*
* vmbus_on_msg_dpc - DPC routine to handle messages from the hypervisior * vmbus_on_msg_dpc - DPC routine to handle messages from the hypervisior
*/ */
void vmbus_on_msg_dpc(struct hv_driver *drv) static void vmbus_on_msg_dpc(struct hv_driver *drv)
{ {
int cpu = smp_processor_id(); int cpu = smp_processor_id();
void *page_addr = hv_context.synic_message_page[cpu]; void *page_addr = hv_context.synic_message_page[cpu];
...@@ -253,7 +253,7 @@ void vmbus_on_msg_dpc(struct hv_driver *drv) ...@@ -253,7 +253,7 @@ void vmbus_on_msg_dpc(struct hv_driver *drv)
/* /*
* vmbus_on_event_dpc - DPC routine to handle events from the hypervisior * vmbus_on_event_dpc - DPC routine to handle events from the hypervisior
*/ */
void vmbus_on_event_dpc(struct hv_driver *drv) static void vmbus_on_event_dpc(struct hv_driver *drv)
{ {
/* TODO: Process any events */ /* TODO: Process any events */
VmbusOnEvents(); VmbusOnEvents();
...@@ -262,7 +262,7 @@ void vmbus_on_event_dpc(struct hv_driver *drv) ...@@ -262,7 +262,7 @@ void vmbus_on_event_dpc(struct hv_driver *drv)
/* /*
* vmbus_on_isr - ISR routine * vmbus_on_isr - ISR routine
*/ */
int vmbus_on_isr(struct hv_driver *drv) static int vmbus_on_isr(struct hv_driver *drv)
{ {
int ret = 0; int ret = 0;
int cpu = smp_processor_id(); int cpu = smp_processor_id();
......
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