summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2015-12-18 12:20:51 +0100
committerMichael Roth <mdroth@linux.vnet.ibm.com>2016-03-15 12:35:25 -0500
commit3e96d5dcf2f7a8c35b0e91b2689482bf0436e49d (patch)
treea64e133cfe0a2d7077e84b7579a00b90cbbd4af3
parent16a28757355514e49507167c9aaae76964fbc793 (diff)
downloadhqemu-3e96d5dcf2f7a8c35b0e91b2689482bf0436e49d.zip
hqemu-3e96d5dcf2f7a8c35b0e91b2689482bf0436e49d.tar.gz
ivshmem: no need for opaque argument
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> (cherry picked from commit 2c64846972897fc3aec4072f849fae2b00322f8b) *context dependency for 47213eb Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r--hw/misc/ivshmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c
index f73f0c2..7d14222 100644
--- a/hw/misc/ivshmem.c
+++ b/hw/misc/ivshmem.c
@@ -350,11 +350,11 @@ static void ivshmem_vector_poll(PCIDevice *dev,
}
}
-static CharDriverState* create_eventfd_chr_device(void * opaque, EventNotifier *n,
+static CharDriverState* create_eventfd_chr_device(IVShmemState *s,
+ EventNotifier *n,
int vector)
{
/* create a event character device based on the passed eventfd */
- IVShmemState *s = opaque;
PCIDevice *pdev = PCI_DEVICE(s);
int eventfd = event_notifier_get_fd(n);
CharDriverState *chr;
OpenPOWER on IntegriCloud