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:

committed by
Michael S. Tsirkin

parent
179b284e2f
commit
a8d3782f9e
@@ -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();
|
||||
|
Reference in New Issue
Block a user