Aaron Durbin (adurbin@chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11406
-gerrit
commit 6e0bfc9fdec2ec32bf98ff238420eaf93e8b0c02 Author: Aaron Durbin adurbin@chromium.org Date: Thu Aug 27 14:04:02 2015 -0500
stdlib: don't hide the malloc et all declarations
It doesn't hurt to expose declarations. Instead of a compile-time error there'll be a link error if someone tries to malloc() anything.
Change-Id: Ief6f22c168c660a6084558b5889ea4cc42fefdde Signed-off-by: Aaron Durbin adurbin@chromium.org --- src/include/stdlib.h | 2 -- 1 file changed, 2 deletions(-)
diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 35e8b32..13f48e2 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -20,12 +20,10 @@ #define min(a,b) MIN((a),(b)) #define max(a,b) MAX((a),(b))
-#if !defined(__PRE_RAM__) void *memalign(size_t boundary, size_t size); void *malloc(size_t size); /* We never free memory */ static inline void free(void *ptr) {} -#endif
#ifndef __ROMCC__ static inline unsigned long div_round_up(unsigned int n, unsigned int d)