Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3289aa8 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: hv: remove SendPacketPageBuffer 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ff3f8eec
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -49,20 +49,9 @@ static int ivmbus_sendpacket(struct hv_device *device, const void *buffer,
				      requestid, type, flags);
				      requestid, type, flags);
}
}


static int ivmbus_sendpacket_pagebuffer(struct hv_device *device,
				struct hv_page_buffer pagebuffers[],
				u32 pagecount, void *buffer,
				u32 bufferlen, u64 requestid)
{
	return vmbus_sendpacket_pagebuffer(device->channel, pagebuffers,
						pagecount, buffer, bufferlen,
						requestid);
}

/* vmbus interface function pointer table */
/* vmbus interface function pointer table */
const struct vmbus_channel_interface vmbus_ops = {
const struct vmbus_channel_interface vmbus_ops = {
	.Open = ivmbus_open,
	.Open = ivmbus_open,
	.Close = ivmbus_close,
	.Close = ivmbus_close,
	.SendPacket = ivmbus_sendpacket,
	.SendPacket = ivmbus_sendpacket,
	.SendPacketPageBuffer = ivmbus_sendpacket_pagebuffer,
};
};
+0 −5
Original line number Original line Diff line number Diff line
@@ -89,7 +89,6 @@ struct hv_device_info {
 * @Open:      Open the channel
 * @Open:      Open the channel
 * @Close:     Close the channel
 * @Close:     Close the channel
 * @SendPacket:        Send a packet over the channel
 * @SendPacket:        Send a packet over the channel
 * @SendPacketPageBuffer:      Send a single page buffer over the channel
 *
 *
 * This structure contains function pointer to control vmbus channel
 * This structure contains function pointer to control vmbus channel
 * behavior. None of these functions is externally callable, but they
 * behavior. None of these functions is externally callable, but they
@@ -104,10 +103,6 @@ struct vmbus_channel_interface {
	void (*Close)(struct hv_device *device);
	void (*Close)(struct hv_device *device);
	int (*SendPacket)(struct hv_device *Device, const void *Buffer,
	int (*SendPacket)(struct hv_device *Device, const void *Buffer,
			  u32 BufferLen, u64 RequestId, u32 Type, u32 Flags);
			  u32 BufferLen, u64 RequestId, u32 Type, u32 Flags);
	int (*SendPacketPageBuffer)(struct hv_device *dev,
				    struct hv_page_buffer PageBuffers[],
				    u32 PageCount, void *Buffer, u32 BufferLen,
				    u64 RequestId);
};
};


extern const struct vmbus_channel_interface vmbus_ops;
extern const struct vmbus_channel_interface vmbus_ops;