Skip to contentSkip to conversation

Fix compilation on ARM

PATCH In review Tomasz Wroblewski 2 participants 2 messages Aug 28, 2013 Arm Samsung Exynos

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation on ARM

Type of tx_ready callback got changed to int to faciliate error condition, but the ARM serial drivers were not modified thus breaking the compilation.

---
 xen/drivers/char/exynos4210-uart.c |    2 +-
 xen/drivers/char/omap-uart.c       |    2 +-
 xen/drivers/char/pl011.c           |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
xen/drivers/char/exynos4210-uart.c +1 -1
index 9b34f92..b297ed4 100644
@@ -221,7 +221,7 @@ static void exynos4210_uart_resume(struct serial_port *port)
     BUG(); // XXX
 }
 
-static unsigned int exynos4210_uart_tx_ready(struct serial_port *port)
+static int exynos4210_uart_tx_ready(struct serial_port *port)
 {
     struct exynos4210_uart *uart = port->uart;
 
xen/drivers/char/omap-uart.c +1 -1
index 91391c8..ffa71db 100644
@@ -226,7 +226,7 @@ static void omap_uart_resume(struct serial_port *port)
     BUG();
 }
 
-static unsigned int omap_uart_tx_ready(struct serial_port *port)
+static int omap_uart_tx_ready(struct serial_port *port)
 {
     struct omap_uart *uart = port->uart;
     uint32_t reg;
xen/drivers/char/pl011.c +1 -1
index 0e1eb64..06e9e4e 100644
@@ -153,7 +153,7 @@ static void pl011_resume(struct serial_port *port)
     BUG(); // XXX
 }
 
-static unsigned int pl011_tx_ready(struct serial_port *port)
+static int pl011_tx_ready(struct serial_port *port)
 {
     struct pl011 *uart = port->uart;
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 1 line · Tomasz Wroblewski

Type of tx_ready callback got changed to int to faciliate error

facilitate

Quoted 5 lines

condition, but the ARM serial drivers were not modified thus breaking
the compilation.

Thanks for fixing this so promptly. I have committed with the above typo fixed and the titled changed to the less generic "xen: update tx_ready callback for ARM serial drivers"

Ian.