[coreboot-gerrit] Patch set updated for coreboot: stdlib: don't hide the malloc et all declarations
Alexandru Gagniuc (mr.nuke.me@gmail.com)
gerrit at coreboot.org
Thu Aug 27 22:29:04 CEST 2015
Alexandru Gagniuc (mr.nuke.me at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11406
-gerrit
commit 313b03c7056294cadef2737acab6a05e4a917a5a
Author: Aaron Durbin <adurbin at 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 at 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)
More information about the coreboot-gerrit
mailing list