]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: hv: make some vmbus_drv functions static
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Dec 2010 20:11:25 +0000 (12:11 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Dec 2010 20:11:25 +0000 (12:11 -0800)
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>
drivers/staging/hv/vmbus_api.h
drivers/staging/hv/vmbus_drv.c

index bb71cd22bce9e3608cf4b07fbb77529513a2e046..2da3f52610b3e12705ed0e4b1a27ba23081e46d2 100644 (file)
@@ -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_ */
index 3f5810a7a6993e4f8e101125020a39b60da2e06d..f623b57c59d0c64f4cf2476150a6460b4c0b33db 100644 (file)
@@ -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();