Patchwork [U-Boot] env_mmc: fix compile warning

login
register
mail settings
Submitter Lei Wen
Date Nov. 8, 2010, 6:59 a.m.
Message ID <1289199588-5592-1-git-send-email-leiwen@marvell.com>
Download mbox | patch
Permalink /patch/72009/
State Accepted
Commit 6d1d51b32b9dc26be42ab95a61346050f9de7665
Headers show

Comments

Lei Wen - Nov. 8, 2010, 6:59 a.m.
Signed-off-by: Lei Wen <leiwen@marvell.com>
---
 common/env_mmc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Mike Frysinger - Nov. 9, 2010, 3:04 p.m.
On Monday, November 08, 2010 01:59:48 Lei Wen wrote:
> Signed-off-by: Lei Wen <leiwen@marvell.com>
> ---
>  common/env_mmc.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/common/env_mmc.c b/common/env_mmc.c
> index 3d7fceb..7c9392c 100644
> --- a/common/env_mmc.c
> +++ b/common/env_mmc.c
> @@ -29,6 +29,7 @@
>  #include <linux/stddef.h>
>  #include <malloc.h>
>  #include <mmc.h>
> +#include <search.h>
>  #include <errno.h>

you really need to mention what warning you're fixing.  such as "missing foo() 
prototype" or something.
-mike

Patch

diff --git a/common/env_mmc.c b/common/env_mmc.c
index 3d7fceb..7c9392c 100644
--- a/common/env_mmc.c
+++ b/common/env_mmc.c
@@ -29,6 +29,7 @@ 
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <search.h>
 #include <errno.h>
 
 /* references to names in env_common.c */