aboutsummaryrefslogtreecommitdiff
path: root/hw/char/nrf51_uart.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-08-04 17:01:14 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2021-08-05 16:15:33 +0400
commitbf7b1eab252bc56b6bbb12a8909eae738435d6ae (patch)
tree222018b52c4b0846f202cd81d3b3a8800f7fb824 /hw/char/nrf51_uart.c
parent30f80be34ba6142dc7ba2015b98d661a9529b7c5 (diff)
downloadqemu-bf7b1eab252bc56b6bbb12a8909eae738435d6ae.zip
qemu-bf7b1eab252bc56b6bbb12a8909eae738435d6ae.tar.gz
qemu-bf7b1eab252bc56b6bbb12a8909eae738435d6ae.tar.bz2
chardev: mark explicitly first argument as poisoned
Since commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2 "char: convert from GIOChannel to QIOChannel", the first argument to the watch callback can actually be a QIOChannel, which is not a GIOChannel (but a QEMU Object). Even though we never used that pointer, change the callback type to warn the users. Possibly a better fix later, we may want to store the callback and call it from intermediary functions. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'hw/char/nrf51_uart.c')
-rw-r--r--hw/char/nrf51_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/nrf51_uart.c b/hw/char/nrf51_uart.c
index 045ca5f..3c6f982 100644
--- a/hw/char/nrf51_uart.c
+++ b/hw/char/nrf51_uart.c
@@ -75,7 +75,7 @@ static uint64_t uart_read(void *opaque, hwaddr addr, unsigned int size)
return r;
}
-static gboolean uart_transmit(GIOChannel *chan, GIOCondition cond, void *opaque)
+static gboolean uart_transmit(void *do_not_use, GIOCondition cond, void *opaque)
{
NRF51UARTState *s = NRF51_UART(opaque);
int r;