From: Marc-André Lureau Date: Fri, 18 Dec 2015 11:20:51 +0000 (+0100) Subject: ivshmem: no need for opaque argument X-Git-Tag: v2.5.1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e96d5dcf2f7a8c35b0e91b2689482bf0436e49d;p=thirdparty%2Fqemu.git ivshmem: no need for opaque argument Signed-off-by: Marc-André Lureau Reviewed-by: Markus Armbruster (cherry picked from commit 2c64846972897fc3aec4072f849fae2b00322f8b) *context dependency for 47213eb Signed-off-by: Michael Roth --- diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index f73f0c2b17b..7d14222781a 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;