From: Julien Grall <julien.grall@linaro.org>
To: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>
Cc: keir@xen.org, Ian Campbell <Ian.Campbell@citrix.com>,
JBeulich@suse.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] V4 pci uart - better cope with UART being temporarily unavailable
Date: Wed, 28 Aug 2013 12:15:26 +0100 [thread overview]
Message-ID: <521DDBCE.70800@linaro.org> (raw)
In-Reply-To: <1377612358-13249-1-git-send-email-tomasz.wroblewski@citrix.com>
On 08/27/2013 03:05 PM, Tomasz Wroblewski wrote:
> diff --git a/xen/include/xen/serial.h b/xen/include/xen/serial.h
> index 403e193..f38c9b7 100644
> --- a/xen/include/xen/serial.h
> +++ b/xen/include/xen/serial.h
> @@ -70,8 +70,9 @@ struct uart_driver {
> /* Driver suspend/resume. */
> void (*suspend)(struct serial_port *);
> void (*resume)(struct serial_port *);
> - /* Return number of characters the port can hold for transmit. */
> - unsigned int (*tx_ready)(struct serial_port *);
> + /* Return number of characters the port can hold for transmit,
> + * or -EIO if port is inaccesible */
> + int (*tx_ready)(struct serial_port *);
Hi,
This callback is shared between ARM and X86. You forgot to modify ARM UART driver
(omap, pl011, exynos4210,...), so it breaks Xen unstable compilation on ARM.
pl011.c:209:5: error: initialization from incompatible pointer type [-Werror]
.tx_ready = pl011_tx_ready,
^
pl011.c:209:5: error: (near initialization for ‘pl011_driver.tx_ready’) [-Werror]
exynos4210-uart.c:298:5: error: initialization from incompatible pointer type [-Werror]
.tx_ready = exynos4210_uart_tx_ready,
^
exynos4210-uart.c:298:5: error: (near initialization for ‘exynos4210_uart_driver.tx_ready’) [-Werror]
omap-uart.c:285:5: error: initialization from incompatible pointer type [-Werror]
.tx_ready = omap_uart_tx_ready,
^
Please, send a patch to fix the compilation on ARM.
Thanks
--
Julien Grall
next prev parent reply other threads:[~2013-08-28 11:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 14:05 [PATCH] V4 pci uart - better cope with UART being temporarily unavailable Tomasz Wroblewski
2013-08-27 14:15 ` Tomasz Wroblewski
2013-08-27 18:06 ` Keir Fraser
2013-08-28 11:15 ` Julien Grall [this message]
2013-08-28 11:16 ` Tomasz Wroblewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=521DDBCE.70800@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=tomasz.wroblewski@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.