diff options
| author | Christoph Hellwig <hch@infradead.org> | 2010-04-13 14:11:25 -0400 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2010-04-14 04:52:08 -0400 |
| commit | a8d3782f9ea7574b8648e69bbb05a0b1d93e437e (patch) | |
| tree | f21fa3d22453b5f701c49b2ed7f906f15bc63944 /drivers/vhost/net.c | |
| parent | 179b284e2fc0c638035843968f7d7ab8ab701525 (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.c | 4 |
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 | ||
| 644 | int vhost_net_init(void) | 644 | static 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 | } |
| 659 | module_init(vhost_net_init); | 659 | module_init(vhost_net_init); |
| 660 | 660 | ||
| 661 | void vhost_net_exit(void) | 661 | static 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(); |
