qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/7] serial: add serial_chr_nonnull() to use the


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH 1/7] serial: add serial_chr_nonnull() to use the null backend when none provided
Date: Thu, 31 Aug 2017 12:17:32 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 08/31/2017 07:28 AM, Peter Maydell wrote:
On 31 August 2017 at 04:53, Philippe Mathieu-Daudé <address@hidden> wrote:
Suggested-by: Peter Maydell <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
  include/hw/char/serial.h |  1 +
  hw/char/serial.c         | 13 +++++++++++++
  2 files changed, 14 insertions(+)

diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h
index c4daf11a14..96bccb39e1 100644
--- a/include/hw/char/serial.h
+++ b/include/hw/char/serial.h
@@ -93,6 +93,7 @@ SerialState *serial_mm_init(MemoryRegion *address_space,
                              hwaddr base, int it_shift,
                              qemu_irq irq, int baudbase,
                              Chardev *chr, enum device_endian end);
+Chardev *serial_chr_nonnull(Chardev *chr);

For new globally-visible function declarations, can we
have a doc-comment form comment that documents the
function, please?

I was afraid someone asked that, but since this file has no other comment I tried :p

Good to know for future contributions, someone fluent with English should add this to CODING_STYLE.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]