diff mbox series

[U-Boot] arm: socfpga: Fixes: include <debug_uart.h>

Message ID 1531403064-16849-1-git-send-email-ley.foon.tan@intel.com
State Accepted
Commit aa529663368e97663d7ec16d6997cb69a2dd8afb
Delegated to: Marek Vasut
Headers show
Series [U-Boot] arm: socfpga: Fixes: include <debug_uart.h> | expand

Commit Message

Ley Foon Tan July 12, 2018, 1:44 p.m. UTC
Fix compilation warning when enable CONFIG_DEBUG_UART.

arch/arm/mach-socfpga/spl_s10.c: In function ‘board_init_f’:
arch/arm/mach-socfpga/spl_s10.c:146:2: warning: implicit declaration of function ‘debug_uart_init’; did you mean ‘part_init’? [-Wimplicit-function-declaration]
  debug_uart_init();

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
---
 arch/arm/mach-socfpga/spl_s10.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Marek Vasut July 12, 2018, 8:04 a.m. UTC | #1
On 07/12/2018 03:44 PM, Ley Foon Tan wrote:
> Fix compilation warning when enable CONFIG_DEBUG_UART.
> 
> arch/arm/mach-socfpga/spl_s10.c: In function ‘board_init_f’:
> arch/arm/mach-socfpga/spl_s10.c:146:2: warning: implicit declaration of function ‘debug_uart_init’; did you mean ‘part_init’? [-Wimplicit-function-declaration]
>   debug_uart_init();
> 
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> ---
>  arch/arm/mach-socfpga/spl_s10.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c
> index 69c2ee3..69d6e91 100644
> --- a/arch/arm/mach-socfpga/spl_s10.c
> +++ b/arch/arm/mach-socfpga/spl_s10.c
> @@ -8,6 +8,7 @@
>  #include <asm/u-boot.h>
>  #include <asm/utils.h>
>  #include <common.h>
> +#include <debug_uart.h>
>  #include <image.h>
>  #include <spl.h>
>  #include <asm/arch/clock_manager.h>
> 
Applied, thanks
diff mbox series

Patch

diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c
index 69c2ee3..69d6e91 100644
--- a/arch/arm/mach-socfpga/spl_s10.c
+++ b/arch/arm/mach-socfpga/spl_s10.c
@@ -8,6 +8,7 @@ 
 #include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <common.h>
+#include <debug_uart.h>
 #include <image.h>
 #include <spl.h>
 #include <asm/arch/clock_manager.h>