Skip to content
Snippets Groups Projects
Commit 75d960fe authored by Avi Kivity's avatar Avi Kivity
Browse files

virtio-blk: don't use C99 designated initializers

While a great feature, it's not supported in C++.  G++ does support it as an
extension, but eclipse's static code analyzer does not, which causes a lot
of false errors to be reported.
parent ca843784
No related branches found
No related tags found
No related merge requests found
......@@ -70,20 +70,20 @@ virtio_blk_write(struct device *dev, struct uio *uio, int ioflags)
return bdev_write(dev, uio, ioflags);
}
static struct devops virtio_blk_devops = {
.open = no_open,
.close = no_close,
.read = virtio_blk_read,
.write = virtio_blk_write,
.ioctl = no_ioctl,
.devctl = no_devctl,
.strategy = virtio_blk_strategy,
static struct devops virtio_blk_devops {
no_open,
no_close,
virtio_blk_read,
virtio_blk_write,
no_ioctl,
no_devctl,
virtio_blk_strategy,
};
struct driver virtio_blk_driver = {
.name = "virtio_blk",
.devops = &virtio_blk_devops,
.devsz = sizeof(struct virtio_blk_priv),
"virtio_blk",
&virtio_blk_devops,
sizeof(struct virtio_blk_priv),
};
virtio_blk::virtio_blk(virtio_device* vdev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment