Skip to content

Commit

Permalink
Staging: hv: make some vmbus_drv functions static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Dec 2, 2010
1 parent 6d26e38 commit cef6dbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/hv/vmbus_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */
6 changes: 3 additions & 3 deletions drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit cef6dbf

Please sign in to comment.