[PATCH] env_mmc: fix compile warning

Lei Wen leiwen at marvell.com
Wed Nov 10 00:44:03 CET 2010


hexport would complain implicit declaration, if we don't add the
include file.

env_mmc.c: In function 'saveenv':
env_mmc.c:109: warning: implicit declaration of function 'hexport'

Signed-off-by: Lei Wen <leiwen at 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>

 /* references to names in env_common.c */
-- 
1.7.0.4

Best regards,
Lei

--00248c0d766c2c192a0494a740ed
Content-Type: application/octet-stream; 
	name="0001-env_mmc-fix-compile-warning.patch"
Content-Disposition: attachment; 
	filename="0001-env_mmc-fix-compile-warning.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ggbfa6x51

RnJvbSBhN2M2OTRmODRiZWM2YjBkYjI2ZWNlNGM3N2QwNjU4NWJlNWE2NzU1IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMZWkgV2VuIDxsZWl3ZW5AbWFydmVsbC5jb20+CkRhdGU6IFdl
ZCwgMTAgTm92IDIwMTAgMDc6NDQ6MDMgKzA4MDAKU3ViamVjdDogW1BBVENIXSBlbnZfbW1jOiBm
aXggY29tcGlsZSB3YXJuaW5nCgpoZXhwb3J0IHdvdWxkIGNvbXBsYWluIGltcGxpY2l0IGRlY2xh
cmF0aW9uLCBpZiB3ZSBkb24ndCBhZGQgdGhlCmluY2x1ZGUgZmlsZS4KCmVudl9tbWMuYzogSW4g
ZnVuY3Rpb24gJ3NhdmVlbnYnOgplbnZfbW1jLmM6MTA5OiB3YXJuaW5nOiBpbXBsaWNpdCBkZWNs
YXJhdGlvbiBvZiBmdW5jdGlvbiAnaGV4cG9ydCcKClNpZ25lZC1vZmY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