]> Pileus Git - ~andy/linux/commitdiff
hv: remove free_channel() from hyperv.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 Oct 2011 15:40:01 +0000 (09:40 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 Oct 2011 15:51:22 +0000 (09:51 -0600)
This function is only used in the file it is declared in
(channel_mgmt.c) so make it static and remove it from the hyperv.h file.

Cc: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hv/channel_mgmt.c
include/linux/hyperv.h

index a2fc487d1422febda15becd8fac0cb3cab15bc3d..12b85ff957fd2d56b2ef42bf829cc1f74e7a26d6 100644 (file)
@@ -196,7 +196,7 @@ static void release_channel(struct work_struct *work)
 /*
  * free_channel - Release the resources used by the vmbus channel object
  */
-void free_channel(struct vmbus_channel *channel)
+static void free_channel(struct vmbus_channel *channel)
 {
 
        /*
index ae865a11ad469c9757353357019dc6bb23297645..240e1141cbbd716046d7459d9c6fa969642b1c02 100644 (file)
@@ -606,8 +606,6 @@ struct vmbus_channel {
        void *channel_callback_context;
 };
 
-void free_channel(struct vmbus_channel *channel);
-
 void vmbus_onmessage(void *context);
 
 int vmbus_request_offers(void);