From patchwork Tue Jan 5 11:49:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 563052 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 2197914031C for ; Tue, 5 Jan 2016 22:50:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b=EEW5wf66; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52EB64B7EF; Tue, 5 Jan 2016 12:50:14 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VnVdhYPGIn-J; Tue, 5 Jan 2016 12:50:14 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D3C364B7DE; Tue, 5 Jan 2016 12:50:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CFB984B7DE for ; Tue, 5 Jan 2016 12:49:50 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id trzhBJFsdpV6 for ; Tue, 5 Jan 2016 12:49:50 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by theia.denx.de (Postfix) with ESMTPS id 95F644B7D6 for ; Tue, 5 Jan 2016 12:49:43 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id b14so25041364wmb.1 for ; Tue, 05 Jan 2016 03:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=gj6kp8vNnsJjNRbU17RqU9D7l+I5+z3WyBYTyjmPP8Q=; b=EEW5wf66O207MxfrM2pi+xeZu7+09jXPXjn/ls2HNGWms5pD+Be+fb4lgeukR/luwR tXfi/wmjRqz1RoiIlM1c2kh8QiWZzm7+zIobrozg6VPA4K0Rqjyfkvaau6EiQ94iIp0B C6swWGZ44PdrfTtuHRrcgkYEMdpwSPL6nuAWhzTEv4/9rcPTxLCGi12ifBVVArOPasc+ tW+azfhA5R0sMsKvb3x+xGCSUBJTv6OjeQ+aS9gU/o0+6Dfe9apC4ftxuFtVk+YoucO2 faqek9xWhQ9UaLnCfU/stv7laPTx5Zww/yLE13QjacHoTLRYGzhUSsXLzosoYMH59qZC Gs2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=gj6kp8vNnsJjNRbU17RqU9D7l+I5+z3WyBYTyjmPP8Q=; b=PvRYWSUlzn4Vx3tJXeUOaUhzUZm3WmPvvJ8F1jl+DS/rhRIb3gP69hXbLeHguHMvnE /F5qNXpjkRTzu/JYp1OGsphfJiXRHJxo932OE+uB7B0RUuYAAmGSErNvbW90m9SdeO52 79S5GQx6wHTaLpYc54TIXlUyiXDTeKo3HV7MlfzA/DFHIgYMyhuTzRTl1BcUbf0761wZ lGgQtq85JImVyXLj7wR8O83uA30lXZWdOk/H3KN1+hSjJCUMZ3qPB7+Y+PotrZcBKx0m ZvwO0XQY0X5q2nnjidJtqC9A2YU7212B7n6BFBBX7XYjAxFHj5wBjj3HcOOBz8zOWB+W yBOg== X-Gm-Message-State: ALoCoQml8XMGpgtiR3tYl59lEcn8lHGQrafU074Y7gr2MzZf9B6QuGSxucPkKmkuUBsOE+65uymKhzvpB9UUu0bsUaH/qsHhDw== X-Received: by 10.28.128.22 with SMTP id b22mr3488204wmd.44.1451994570734; Tue, 05 Jan 2016 03:49:30 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id 198sm3169667wml.22.2016.01.05.03.49.29 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Jan 2016 03:49:30 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Tue, 5 Jan 2016 12:49:21 +0100 Message-Id: <38b85d7d53321d2ff8f4d6182a102dea54abbf6e.1451994551.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 Subject: [U-Boot] [PATCH v3] serial: zynq: Use static inline for _debug_uart_init() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Mark _debug_uart_init() as static to avoid sparse warning and inline it to debug_uart_init(). Reported-by: Thomas Chou Signed-off-by: Michal Simek Reviewed-by: Thomas Chou Reviewed-by: Simon Glass Reviewed-by: Bin Meng Acked-by: Simon Glass --- 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(-) diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index b2b98dea1561..3430482f8d8b 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -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;