]> Git Repo - qemu.git/commit - monitor/monitor.c
chardev: mark explicitly first argument as poisoned
authorMarc-André Lureau <[email protected]>
Wed, 4 Aug 2021 13:01:14 +0000 (17:01 +0400)
committerMarc-André Lureau <[email protected]>
Thu, 5 Aug 2021 12:15:33 +0000 (16:15 +0400)
commitbf7b1eab252bc56b6bbb12a8909eae738435d6ae
tree222018b52c4b0846f202cd81d3b3a8800f7fb824
parent30f80be34ba6142dc7ba2015b98d661a9529b7c5
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 <[email protected]>
Reviewed-by: Daniel P. Berrangé <[email protected]>
12 files changed:
chardev/char-fe.c
hw/char/cadence_uart.c
hw/char/cmsdk-apb-uart.c
hw/char/ibex_uart.c
hw/char/nrf51_uart.c
hw/char/serial.c
hw/char/virtio-console.c
hw/usb/redirect.c
hw/virtio/vhost-user.c
include/chardev/char-fe.h
monitor/monitor.c
net/vhost-user.c
This page took 0.031191 seconds and 4 git commands to generate.