[coreboot] New patch to review for coreboot: c026f8a Add back dummy free()
Stefan Reinauer (stefan.reinauer@coreboot.org)
gerrit at coreboot.org
Tue Dec 18 23:29:04 CET 2012
Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2051
-gerrit
commit c026f8ab6897b65d0e355e90fa62bfea39639c1f
Author: Stefan Reinauer <reinauer at chromium.org>
Date: Tue Dec 18 14:27:50 2012 -0800
Add back dummy free()
GNU CC coverage needs free() and it's highly desirable to leave
the code as genuine as possible.
Change-Id: I4c821b9d211ef7a8e7168dc5e3116730693999c6
Signed-off-by: Stefan Reinauer <reinauer at google.com>
---
src/include/stdlib.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index bb57ab3..2d0bb12 100644
--- a/src/include/stdlib.h
+++ b/src/include/stdlib.h
@@ -14,6 +14,8 @@
#if !defined(__PRE_RAM__)
void *memalign(size_t boundary, size_t size);
void *malloc(size_t size);
+/* We never free memory */
+#define free(addr) (void)(addr)
#endif
#endif /* STDLIB_H */
More information about the coreboot
mailing list