Patchwork [RFC] vhost-net: make more functions static

login
register
mail settings
Submitter Michael S. Tsirkin
Date June 20, 2013, 11:55 a.m.
Message ID <20130620115519.GA5301@redhat.com>
Download mbox | patch
Permalink /patch/252887/
State RFC
Delegated to: David Miller
Headers show

Comments

Michael S. Tsirkin - June 20, 2013, 11:55 a.m.
Make two more functions static - they only have local callers.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---

Will be merged through the vhost tree - no need to apply
directly.

 drivers/vhost/net.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 534adb0..4c5de87 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -167,7 +167,7 @@  static void vhost_net_clear_ubuf_info(struct vhost_net *n)
 	}
 }
 
-int vhost_net_set_ubuf_info(struct vhost_net *n)
+static int vhost_net_set_ubuf_info(struct vhost_net *n)
 {
 	bool zcopy;
 	int i;
@@ -188,7 +188,7 @@  err:
 	return -ENOMEM;
 }
 
-void vhost_net_vq_reset(struct vhost_net *n)
+static void vhost_net_vq_reset(struct vhost_net *n)
 {
 	int i;