aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 09:16:54 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 09:16:54 -0700
commit22ff5c9166ed31130426714232f4a6f79235af34 (patch)
treec6a902ced14877d50cedc6bc66a456aa3554f952 /drivers/staging/hv
parentStaging: hv: storvsc: call vmbus_recvpacket directly (diff)
downloadlinux-dev-22ff5c9166ed31130426714232f4a6f79235af34.tar.xz
linux-dev-22ff5c9166ed31130426714232f4a6f79235af34.zip
Staging: hv: remove RecvPacket from struct vmbus_channel_interface
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/channel_interface.c9
-rw-r--r--drivers/staging/hv/vmbus_api.h3
2 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/hv/channel_interface.c b/drivers/staging/hv/channel_interface.c
index e504e9878421..0f8e9f0adefa 100644
--- a/drivers/staging/hv/channel_interface.c
+++ b/drivers/staging/hv/channel_interface.c
@@ -68,14 +68,6 @@ static int ivmbus_sendpacket_multipagebuffer(struct hv_device *device,
bufferlen, requestid);
}
-static int ivmbus_recvpacket(struct hv_device *device, void *buffer,
- u32 bufferlen, u32 *buffer_actuallen,
- u64 *requestid)
-{
- return vmbus_recvpacket(device->channel, buffer, bufferlen,
- buffer_actuallen, requestid);
-}
-
/* vmbus interface function pointer table */
const struct vmbus_channel_interface vmbus_ops = {
.Open = ivmbus_open,
@@ -83,5 +75,4 @@ const struct vmbus_channel_interface vmbus_ops = {
.SendPacket = ivmbus_sendpacket,
.SendPacketPageBuffer = ivmbus_sendpacket_pagebuffer,
.SendPacketMultiPageBuffer = ivmbus_sendpacket_multipagebuffer,
- .RecvPacket = ivmbus_recvpacket,
};
diff --git a/drivers/staging/hv/vmbus_api.h b/drivers/staging/hv/vmbus_api.h
index b3f2132cf431..3f727d9b06c1 100644
--- a/drivers/staging/hv/vmbus_api.h
+++ b/drivers/staging/hv/vmbus_api.h
@@ -91,7 +91,6 @@ struct hv_device_info {
* @SendPacket: Send a packet over the channel
* @SendPacketPageBuffer: Send a single page buffer over the channel
* @SendPacketMultiPageBuffer: Send a multiple page buffers
- * @RecvPacket: Receive packet
*
* This structure contains function pointer to control vmbus channel
* behavior. None of these functions is externally callable, but they
@@ -115,8 +114,6 @@ struct vmbus_channel_interface {
void *Buffer,
u32 BufferLen,
u64 RequestId);
- int (*RecvPacket)(struct hv_device *dev, void *buf, u32 buflen,
- u32 *BufferActualLen, u64 *RequestId);
};
extern const struct vmbus_channel_interface vmbus_ops;