vhost: fix sparse warnings

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Christoph Hellwig
2010-04-13 14:11:25 -04:00
committed by Michael S. Tsirkin
parent 179b284e2f
commit a8d3782f9e
2 changed files with 8 additions and 7 deletions

View File

@@ -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();