diff options
author | Andreas Färber <afaerber@suse.de> | 2014-03-13 17:12:53 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 21:12:07 +0100 |
commit | be21c336162f5f4269131faffb1c6461cf57b74a (patch) | |
tree | bb23ee9148fdc4f8dc117eda1684a0ba91353b90 /tests/virtio-console-test.c | |
parent | bbbd67f0ccdba93702e58879997c1d2ca67311b1 (diff) |
virtio-console: Fix VIRTIO_CONSOLE() cast macro
Commit 0399a3819b27083ba69b88a9baa9025facab85bd (virtio-console: QOM
cast cleanup for VirtConsole) broke virtserialport since it shares
functions and state struct with virtconsole. Let virtconsole inherit
from virtserialport, and use virtserialport type for casting.
Note that virtio-serial-port is the abstract base type in
virtio-serial-bus.c, whereas virtserialport is the user-instantiatable
type in virtio-console.c. Therefore using TYPE_VIRTIO_CONSOLE_SERIAL_PORT.
Reported-by: Richard W.M. Jones <rjones@redhat.com>
Acked-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/virtio-console-test.c')
0 files changed, 0 insertions, 0 deletions