summaryrefslogtreecommitdiff
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-12-02 20:11:25 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-02 20:11:25 (GMT)
commitcef6dbfa8ef6b8c474e020a24758aa848a2632fa (patch)
treea75e8710f4440808ac1b7a28fa07f875dea50603 /drivers/staging/hv
parent6d26e38fa2085ab3ba37a52e34caf46f8e049544 (diff)
downloadlinux-fsl-qoriq-cef6dbfa8ef6b8c474e020a24758aa848a2632fa.tar.xz
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>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/vmbus_api.h4
-rw-r--r--drivers/staging/hv/vmbus_drv.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/drivers/staging/hv/vmbus_api.h b/drivers/staging/hv/vmbus_api.h
index bb71cd2..2da3f52 100644
--- a/drivers/staging/hv/vmbus_api.h
+++ b/drivers/staging/hv/vmbus_api.h
@@ -115,8 +115,4 @@ struct hv_device {
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_ */
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c
index 3f5810a..f623b57 100644
--- a/drivers/staging/hv/vmbus_drv.c
+++ b/drivers/staging/hv/vmbus_drv.c
@@ -206,7 +206,7 @@ static void VmbusOnCleanup(struct hv_driver *drv)
/*
* 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();
void *page_addr = hv_context.synic_message_page[cpu];
@@ -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
*/
-void vmbus_on_event_dpc(struct hv_driver *drv)
+static void vmbus_on_event_dpc(struct hv_driver *drv)
{
/* TODO: Process any events */
VmbusOnEvents();
@@ -262,7 +262,7 @@ void vmbus_on_event_dpc(struct hv_driver *drv)
/*
* 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 cpu = smp_processor_id();