Browse Source

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>
pull/14/head
Stefan Weil 12 years ago
committed by Michael Tokarev
parent
commit
0f03fb6094
  1. 2
      hw/virtio/vhost-backend.c
  2. 2
      include/hw/virtio/vhost-backend.h

2
hw/virtio/vhost-backend.c

@ -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)
{

2
include/hw/virtio/vhost-backend.h

@ -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…
Cancel
Save