chardev: mark explicitly first argument as poisoned
Since commit 9894dc0c "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>
Showing
- chardev/char-fe.c 1 addition, 1 deletionchardev/char-fe.c
- hw/char/cadence_uart.c 1 addition, 1 deletionhw/char/cadence_uart.c
- hw/char/cmsdk-apb-uart.c 1 addition, 1 deletionhw/char/cmsdk-apb-uart.c
- hw/char/ibex_uart.c 1 addition, 1 deletionhw/char/ibex_uart.c
- hw/char/nrf51_uart.c 1 addition, 1 deletionhw/char/nrf51_uart.c
- hw/char/serial.c 1 addition, 1 deletionhw/char/serial.c
- hw/char/virtio-console.c 1 addition, 1 deletionhw/char/virtio-console.c
- hw/usb/redirect.c 1 addition, 1 deletionhw/usb/redirect.c
- hw/virtio/vhost-user.c 1 addition, 1 deletionhw/virtio/vhost-user.c
- include/chardev/char-fe.h 7 additions, 1 deletioninclude/chardev/char-fe.h
- monitor/monitor.c 1 addition, 1 deletionmonitor/monitor.c
- net/vhost-user.c 2 additions, 2 deletionsnet/vhost-user.c
Loading
Please register or sign in to comment