Skip to contentSkip to conversation

Remove unneeded #include <malloc.h>

PATCH New Ladislav Michl 2 participants 2 messages Feb 22, 2005 – Sep 25, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unneeded #include <malloc.h>

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

env_dataflash.c +0 -1
diff -u -r1.1 env_dataflash.c
@@ -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

env_eeprom.c +0 -1
diff -u -r1.2 env_eeprom.c
@@ -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

env_nand.c +0 -1
diff -u -r1.2 env_nand.c
@@ -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

env_nowhere.c +0 -1
diff -u -r1.1.1.1 env_nowhere.c
@@ -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

env_nvram.c +0 -1
diff -u -r1.3 env_nvram.c
@@ -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

main.c +0 -1
diff -u -r1.21 main.c
@@ -26,7 +26,6 @@
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
-#include <malloc.h>
 
 #ifdef CFG_HUSH_PARSER
 #include <hush.h>
#1 lore raw

PATCH 1/1 Remove unneeded #include <malloc.h>

Quoted 3 lines · In message <20050222113107.GA18261@orphique> you wrote:

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

Added, thanks. Please don't forget the CHANGELOG entries!

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Perl already has an IDE.  It's called Unix.
                      -- Tom Christiansen in 375bd509 at cs.colorado.edu