Skip to content

Commit 9f3e28e

Browse files
committed
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 parent 2726f95 commit 9f3e28e

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/hv/channel_mgmt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static void release_channel(struct work_struct *work)
196196
/*
197197
* free_channel - Release the resources used by the vmbus channel object
198198
*/
199-
void free_channel(struct vmbus_channel *channel)
199+
static void free_channel(struct vmbus_channel *channel)
200200
{
201201

202202
/*

‎include/linux/hyperv.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,6 @@ struct vmbus_channel {
606606
void *channel_callback_context;
607607
};
608608

609-
void free_channel(struct vmbus_channel *channel);
610-
611609
void vmbus_onmessage(void *context);
612610

613611
int vmbus_request_offers(void);

0 commit comments

Comments
 (0)