aboutsummaryrefslogtreecommitdiffstats
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 04:52:08 -0400
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 = {
641 &vhost_net_fops, 641 &vhost_net_fops,
642}; 642};
643 643
644int vhost_net_init(void) 644static int vhost_net_init(void)
645{ 645{
646 int r = vhost_init(); 646 int r = vhost_init();
647 if (r) 647 if (r)
@@ -658,7 +658,7 @@ err_init:
658} 658}
659module_init(vhost_net_init); 659module_init(vhost_net_init);
660 660
661void vhost_net_exit(void) 661static void vhost_net_exit(void)
662{ 662{
663 misc_deregister(&vhost_net_misc); 663 misc_deregister(&vhost_net_misc);
664 vhost_cleanup(); 664 vhost_cleanup();