Thread (21 messages) 21 messages, 4 authors, 2016-12-12

Re: [PATCH 08/10] vsock/virtio: mark an internal function static

From: Jason Wang <jasowang@redhat.com>
Date: 2016-12-07 04:21:29
Also in: kvm, lkml, virtualization


On 2016年12月06日 23:41, Michael S. Tsirkin wrote:
quoted hunk ↗ jump to hunk
virtio_transport_alloc_pkt is only used locally, make it static.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
  net/vmw_vsock/virtio_transport_common.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
index a53b3a1..6120384 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,
Git grep shows it was used by tracing.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help