diff mbox

[U-Boot] imx: dek_blob: Add explicit include for mapmem

Message ID 1430751208-26572-1-git-send-email-Ulises.Cardenas@freescale.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Ulises.Cardenas@freescale.com May 4, 2015, 2:53 p.m. UTC
From: Ulises Cardenas <Ulises.Cardenas@freescale.com>

 Boards such as imx6q_sabresd might not have mapmem.h as part of
 their common library. This causes a build error if the DEK blob
 command is enabled.

 Fix: make explicit the include of mapmem.h

Signed-off-by: Ulises Cardenas <Ulises.Cardenas@freescale.com>
---

 arch/arm/imx-common/cmd_dek.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Ruchika Gupta May 10, 2015, 3:20 p.m. UTC | #1
> -----Original Message-----
> From: Ulises.Cardenas@freescale.com
> [mailto:Ulises.Cardenas@freescale.com]
> Sent: Monday, May 04, 2015 8:23 PM
> To: Estevam Fabio-R49496
> Cc: u-boot@lists.denx.de; sbabic@denx.de; sjg@chromium.org; Garg Nitin-
> B37173; Gupta Ruchika-R66431; Ulises Cardenas Casas
> Subject: [PATCH] imx: dek_blob: Add explicit include for mapmem
> 
> From: Ulises Cardenas <Ulises.Cardenas@freescale.com>
> 
>  Boards such as imx6q_sabresd might not have mapmem.h as part of  their
> common library. This causes a build error if the DEK blob  command is
> enabled.
> 
>  Fix: make explicit the include of mapmem.h
> 
> Signed-off-by: Ulises Cardenas <Ulises.Cardenas@freescale.com>
> ---
> 
>  arch/arm/imx-common/cmd_dek.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/imx-common/cmd_dek.c b/arch/arm/imx-
> common/cmd_dek.c index d93d5fb..ada8adf 100644
> --- a/arch/arm/imx-common/cmd_dek.c
> +++ b/arch/arm/imx-common/cmd_dek.c
> @@ -14,6 +14,7 @@
>  #include <linux/compiler.h>
>  #include <fsl_sec.h>
>  #include <asm/arch/clock.h>
> +#include <mapmem.h>
> 
>  DECLARE_GLOBAL_DATA_PTR;
> 
> --
> 2.3.2
Reviewed-by: Ruchika Gupta <Ruchika.gupta@freescale.com>
Stefano Babic May 15, 2015, 9:53 a.m. UTC | #2
On 04/05/2015 16:53, Ulises.Cardenas@freescale.com wrote:
> From: Ulises Cardenas <Ulises.Cardenas@freescale.com>
> 
>  Boards such as imx6q_sabresd might not have mapmem.h as part of
>  their common library. This causes a build error if the DEK blob
>  command is enabled.
> 
>  Fix: make explicit the include of mapmem.h
> 
> Signed-off-by: Ulises Cardenas <Ulises.Cardenas@freescale.com>
> ---
> 
>  arch/arm/imx-common/cmd_dek.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/imx-common/cmd_dek.c b/arch/arm/imx-common/cmd_dek.c
> index d93d5fb..ada8adf 100644
> --- a/arch/arm/imx-common/cmd_dek.c
> +++ b/arch/arm/imx-common/cmd_dek.c
> @@ -14,6 +14,7 @@
>  #include <linux/compiler.h>
>  #include <fsl_sec.h>
>  #include <asm/arch/clock.h>
> +#include <mapmem.h>
>  
>  DECLARE_GLOBAL_DATA_PTR;
>  
> 

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/arch/arm/imx-common/cmd_dek.c b/arch/arm/imx-common/cmd_dek.c
index d93d5fb..ada8adf 100644
--- a/arch/arm/imx-common/cmd_dek.c
+++ b/arch/arm/imx-common/cmd_dek.c
@@ -14,6 +14,7 @@ 
 #include <linux/compiler.h>
 #include <fsl_sec.h>
 #include <asm/arch/clock.h>
+#include <mapmem.h>
 
 DECLARE_GLOBAL_DATA_PTR;