summaryrefslogtreecommitdiff
path: root/drivers/vhost/net.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-04-13 14:11:25 -0400
committerMichael S. Tsirkin <mst@redhat.com>2010-04-14 11:52:08 +0300
commita8d3782f9ea7574b8648e69bbb05a0b1d93e437e (patch)
treef21fa3d22453b5f701c49b2ed7f906f15bc63944 /drivers/vhost/net.c
parent179b284e2fc0c638035843968f7d7ab8ab701525 (diff)
vhost: fix sparse warnings
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/net.c')
-rw-r--r--drivers/vhost/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index a6a88dfd5029..38989d1335bc 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -641,7 +641,7 @@ static struct miscdevice vhost_net_misc = {
&vhost_net_fops,
};
-int vhost_net_init(void)
+static int vhost_net_init(void)
{
int r = vhost_init();
if (r)
@@ -658,7 +658,7 @@ err_init:
}
module_init(vhost_net_init);
-void vhost_net_exit(void)
+static void vhost_net_exit(void)
{
misc_deregister(&vhost_net_misc);
vhost_cleanup();