mirror of https://gitee.com/openkylin/qemu.git
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:
parent
a3f1f040d2
commit
0f03fb6094
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue