Skip to contentSkip to conversation

serial: zynq: Use static inline for _debug_uart_init()

PATCH New Michal Simek 3 participants 3 messages Jan 5, 2016 – Jan 9, 2016 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

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().

---

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
index b2b98dea1561..3430482f8d8b 100644
@@ -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
#1 lore raw

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 to debug_uart_init().

---

Changes in v3:
- Separate uartlite from this patch

Quoted 6 lines

Changes in v2:
- Add tags
- Extend commit message reported by Bin

 drivers/serial/serial_zynq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw

PATCH v3 1/1 serial: zynq: Use static inline for _debug_uart_init()

In reply to Michal Simek
Quoted 9 lines · Michal Simek

Mark _debug_uart_init() as static to avoid sparse warning and inline it to debug_uart_init().

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>