virtio: Move extern declaration to header file

This fixes a warning from smatch (static code analyser).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Stefan Weil 2014-07-07 21:13:27 +02:00 committed by Michael Tokarev
parent a3f1f040d2
commit 0f03fb6094
2 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,6 @@
#include <sys/ioctl.h>
extern const VhostOps user_ops;
static int vhost_kernel_call(struct vhost_dev *dev, unsigned long int request,
void *arg)
{

View File

@ -32,6 +32,8 @@ typedef struct VhostOps {
vhost_backend_cleanup vhost_backend_cleanup;
} VhostOps;
extern const VhostOps user_ops;
int vhost_set_backend_type(struct vhost_dev *dev,
VhostBackendType backend_type);