From: Greg Kroah-Hartman Date: Thu, 21 Oct 2010 15:42:55 +0000 (-0700) Subject: Staging: hv: remove TeardownGpadl from struct vmbus_channel_interface X-Git-Tag: firefly_0821_release~7613^2~3583^2~3^2~34 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a78770572074c63fd34dd64fbfd777675bef23db;p=firefly-linux-kernel-4.4.55.git Staging: hv: remove TeardownGpadl from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/channel_interface.c b/drivers/staging/hv/channel_interface.c index 24a8951b9a15..c23a021f786f 100644 --- a/drivers/staging/hv/channel_interface.c +++ b/drivers/staging/hv/channel_interface.c @@ -91,13 +91,6 @@ static int ivmbus_establish_gpadl(struct hv_device *device, void *buffer, gpadl_handle); } -static int ivmbus_teardown_gpadl(struct hv_device *device, - u32 gpadl_handle) -{ - return vmbus_teardown_gpadl(device->context, gpadl_handle); - -} - /* vmbus interface function pointer table */ const struct vmbus_channel_interface vmbus_ops = { .Open = ivmbus_open, @@ -108,5 +101,4 @@ const struct vmbus_channel_interface vmbus_ops = { .RecvPacket = ivmbus_recvpacket, .RecvPacketRaw = ivmbus_recvpacket_raw, .EstablishGpadl = ivmbus_establish_gpadl, - .TeardownGpadl = ivmbus_teardown_gpadl, }; diff --git a/drivers/staging/hv/vmbus_api.h b/drivers/staging/hv/vmbus_api.h index fdd6c59a0efd..bd68a07f36cd 100644 --- a/drivers/staging/hv/vmbus_api.h +++ b/drivers/staging/hv/vmbus_api.h @@ -94,7 +94,6 @@ struct hv_device_info { * @RecvPacket: Receive packet * @RecvPacketRaw: Receive Raw packet * @EstablishGpadl: Set up GPADL for ringbuffer - * @TeardownGpadl: Teardown GPADL for ringbuffer * * This structure contains function pointer to control vmbus channel * behavior. None of these functions is externally callable, but they @@ -124,7 +123,6 @@ struct vmbus_channel_interface { u32 *BufferActualLen, u64 *RequestId); int (*EstablishGpadl)(struct hv_device *dev, void *buf, u32 buflen, u32 *GpadlHandle); - int (*TeardownGpadl)(struct hv_device *device, u32 GpadlHandle); }; extern const struct vmbus_channel_interface vmbus_ops;