Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hv: remove free_channel() from hyperv.h

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>

+1 -3
+1 -1
drivers/hv/channel_mgmt.c
··· 196 196 /* 197 197 * free_channel - Release the resources used by the vmbus channel object 198 198 */ 199 - void free_channel(struct vmbus_channel *channel) 199 + static void free_channel(struct vmbus_channel *channel) 200 200 { 201 201 202 202 /*
-2
include/linux/hyperv.h
··· 606 606 void *channel_callback_context; 607 607 }; 608 608 609 - void free_channel(struct vmbus_channel *channel); 610 - 611 609 void vmbus_onmessage(void *context); 612 610 613 611 int vmbus_request_offers(void);