diff --git a/CHANGELOG b/CHANGELOG
index f5a16d8825b9ba8e229f4374268bab81f886f62e..24a43cba0703daab20214e0a54072eb8f0bfcd64 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes for U-Boot 1.1.4:
 ======================================================================
 
+* Fix compiler warning
+
 * Fix FEC PHY addresses for TQM85xx boards
 
 * Fix uninitialized variable problem in hush shell
diff --git a/common/main.c b/common/main.c
index 29226244a1af4afa4af92ade7ce5a3a2446719a2..1389958de3e1bd0251535476dcc16dde6a626f3c 100644
--- a/common/main.c
+++ b/common/main.c
@@ -26,6 +26,9 @@
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
+#ifdef CONFIG_MODEM_SUPPORT
+#include <malloc.h>		/* for free() prototype */
+#endif
 
 #ifdef CFG_HUSH_PARSER
 #include <hush.h>