From: Michael S. Tsirkin Date: Tue, 6 Dec 2016 04:06:06 +0000 (+0200) Subject: vsock/virtio: mark an internal function static X-Git-Tag: v5.15~12235^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=819483d806f4324b42a25f8dd760735ae659141c;p=platform%2Fkernel%2Flinux-starfive.git vsock/virtio: mark an internal function static virtio_transport_alloc_pkt is only used locally, make it static. Signed-off-by: Michael S. Tsirkin --- diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c index 687e9fd..6fd923e 100644 --- a/net/vmw_vsock/virtio_transport_common.c +++ b/net/vmw_vsock/virtio_transport_common.c @@ -32,7 +32,7 @@ static const struct virtio_transport *virtio_transport_get_ops(void) return container_of(t, struct virtio_transport, transport); } -struct virtio_vsock_pkt * +static struct virtio_vsock_pkt * virtio_transport_alloc_pkt(struct virtio_vsock_pkt_info *info, size_t len, u32 src_cid, @@ -82,7 +82,6 @@ out_pkt: kfree(pkt); return NULL; } -EXPORT_SYMBOL_GPL(virtio_transport_alloc_pkt); static int virtio_transport_send_pkt_info(struct vsock_sock *vsk, struct virtio_vsock_pkt_info *info)