diff options
author | Cornelia Huck | 2015-08-17 11:48:29 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2015-09-10 10:06:05 +0200 |
commit | 95129d6fc9ead97155627a4ca0cfd37282883658 (patch) | |
tree | 83c1e77facc2839479e50706605cbeb283684fd8 /hw/net/vhost_net.c | |
parent | pc: Remove redundant arguments from xen_hvm_init() (diff) | |
download | qemu-95129d6fc9ead97155627a4ca0cfd37282883658.tar.gz qemu-95129d6fc9ead97155627a4ca0cfd37282883658.tar.xz qemu-95129d6fc9ead97155627a4ca0cfd37282883658.zip |
virtio: avoid leading underscores for helpers
Commit ef546f1275f6563e8934dd5e338d29d9f9909ca6 ("virtio: add
feature checking helpers") introduced a helper __virtio_has_feature.
We don't want to use reserved identifiers, though, so let's
rename __virtio_has_feature to virtio_has_feature and virtio_has_feature
to virtio_vdev_has_feature.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/vhost_net.c')
-rw-r--r-- | hw/net/vhost_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index 5c1d11f517..1d76b94c84 100644 --- a/hw/net/vhost_net.c +++ b/hw/net/vhost_net.c @@ -197,7 +197,7 @@ static int vhost_net_set_vnet_endian(VirtIODevice *dev, NetClientState *peer, { int r = 0; - if (virtio_has_feature(dev, VIRTIO_F_VERSION_1) || + if (virtio_vdev_has_feature(dev, VIRTIO_F_VERSION_1) || (virtio_legacy_is_cross_endian(dev) && !virtio_is_big_endian(dev))) { r = qemu_set_vnet_le(peer, set); if (r) { |