Re: [Qemu-devel] [PATCH 21/40] char: make null_chr_write() the default method

2017-01-12 Thread Eric Blake
On 01/11/2017 11:29 AM, Marc-André Lureau wrote: > All chardev must implement chr_write(), but parallel and null chardev > both use null_chr_write(). Move it to the base class, so we don't need > to export the function when splitting the chardev in respective files. > > Signed-off-by: Marc-André L

[Qemu-devel] [PATCH 21/40] char: make null_chr_write() the default method

2017-01-11 Thread Marc-André Lureau
All chardev must implement chr_write(), but parallel and null chardev both use null_chr_write(). Move it to the base class, so we don't need to export the function when splitting the chardev in respective files. Signed-off-by: Marc-André Lureau --- chardev/char.c | 21 + 1 fi