serial: zynq: Use static inline for _debug_uart_init()
PATCH v3 1/1 serial: zynq: Use static inline for _debug_uart_init()
Mark _debug_uart_init() as static to avoid sparse warning and inline it to debug_uart_init().
Reported-by Thomas Chou <[email protected]>
Signed-off-by Michal Simek <[email protected]>
Reviewed-by Thomas Chou <[email protected]>
Reviewed-by Simon Glass <[email protected]>
Reviewed-by Bin Meng <[email protected]>
---
Changes in v3:
- Separate uartlite from this patch
Changes in v2:
- Add tags
- Extend commit message reported by Bin
drivers/serial/serial_zynq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/serial/serial_zynq.c +1 -1
@@ -192,7 +192,7 @@ U_BOOT_DRIVER(serial_zynq) = { };#ifdef CONFIG_DEBUG_UART_ZYNQ -void _debug_uart_init (void ) +static inline void _debug_uart_init (void ) {struct uart_zynq *regs = (struct uart_zynq *)CONFIG_DEBUG_UART_BASE ;
Signature · 1 line
1.9.1
PATCH v3 1/1 serial: zynq: Use static inline for _debug_uart_init()
Quoted 13 lines · Michal Simek
Mark
_debug_uart_init()as static to avoid sparse warning and inline it todebug_uart_init().Reported-by Thomas Chou <[email protected]>Signed-off-by Michal Simek <[email protected]>Reviewed-by Thomas Chou <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Bin Meng <[email protected]>---
Changes in v3:
- Separate uartlite from this patch
Quoted 6 lines
Changes in v2:
- Add tags
- Extend commit message reported by Bindrivers/serial/serial_zynq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by Simon Glass <[email protected]>
PATCH v3 1/1 serial: zynq: Use static inline for _debug_uart_init()
In reply to Michal SimekQuoted 9 lines · Michal Simek
Mark
_debug_uart_init()as static to avoid sparse warning and inline it todebug_uart_init().Reported-by Thomas Chou <[email protected]>Signed-off-by Michal Simek <[email protected]>Reviewed-by Thomas Chou <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Bin Meng <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160108/f7aab216/attachment.sig>