[U-Boot-Users] [PATCH] Remove unneeded #include <malloc.h>

Ladislav Michl ladis at linux-mips.org
Tue Feb 22 12:31:07 CET 2005


Hi Wolfgang,

this u-patch is remnant of my effort to have malloc pool in SDRAM and the
rest of U-Boot in SRAM.

Best regards,
	ladis

Index: common/env_dataflash.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/env_dataflash.c,v
retrieving revision 1.1
diff -u -r1.1 env_dataflash.c
--- common/env_dataflash.c	6 Dec 2003 23:55:11 -0000	1.1
+++ common/env_dataflash.c	22 Feb 2005 11:04:56 -0000
@@ -24,7 +24,6 @@
 #include <command.h>
 #include <environment.h>
 #include <linux/stddef.h>
-#include <malloc.h>
 #include <dataflash.h>
 
 env_t *env_ptr = NULL;
Index: common/env_eeprom.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/env_eeprom.c,v
retrieving revision 1.2
diff -u -r1.2 env_eeprom.c
--- common/env_eeprom.c	27 Jun 2003 21:32:31 -0000	1.2
+++ common/env_eeprom.c	22 Feb 2005 11:04:56 -0000
@@ -31,7 +31,6 @@
 #include <command.h>
 #include <environment.h>
 #include <linux/stddef.h>
-#include <malloc.h>
 
 env_t *env_ptr = NULL;
 
Index: common/env_nand.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/env_nand.c,v
retrieving revision 1.2
diff -u -r1.2 env_nand.c
--- common/env_nand.c	19 Jun 2004 21:19:12 -0000	1.2
+++ common/env_nand.c	22 Feb 2005 11:04:56 -0000
@@ -36,7 +36,6 @@
 #include <command.h>
 #include <environment.h>
 #include <linux/stddef.h>
-#include <malloc.h>
 #include <linux/mtd/nand.h>
 
 #if ((CONFIG_COMMANDS&(CFG_CMD_ENV|CFG_CMD_NAND)) == (CFG_CMD_ENV|CFG_CMD_NAND))
Index: common/env_nowhere.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/env_nowhere.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 env_nowhere.c
--- common/env_nowhere.c	18 Sep 2002 11:09:59 -0000	1.1.1.1
+++ common/env_nowhere.c	22 Feb 2005 11:04:56 -0000
@@ -31,7 +31,6 @@
 #include <command.h>
 #include <environment.h>
 #include <linux/stddef.h>
-#include <malloc.h>
 
 env_t *env_ptr = NULL;
 
Index: common/env_nvram.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/env_nvram.c,v
retrieving revision 1.3
diff -u -r1.3 env_nvram.c
--- common/env_nvram.c	27 Jun 2003 21:32:31 -0000	1.3
+++ common/env_nvram.c	22 Feb 2005 11:04:56 -0000
@@ -47,7 +47,6 @@
 #include <command.h>
 #include <environment.h>
 #include <linux/stddef.h>
-#include <malloc.h>
 
 #ifdef CFG_NVRAM_ACCESS_ROUTINE
 extern void *nvram_read(void *dest, const long src, size_t count);
Index: common/main.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/main.c,v
retrieving revision 1.21
diff -u -r1.21 main.c
--- common/main.c	9 Jan 2005 23:33:50 -0000	1.21
+++ common/main.c	22 Feb 2005 11:04:56 -0000
@@ -26,7 +26,6 @@
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
-#include <malloc.h>
 
 #ifdef CFG_HUSH_PARSER
 #include <hush.h>





More information about the U-Boot mailing list