summaryrefslogtreecommitdiff
path: root/src/include/stdlib.h
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-12-18 14:27:50 -0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-12-19 22:37:43 +0100
commite09f7ef00af02234a9e12724765c71ee29be70ec (patch)
tree472d6791db47cf0821221984c1978b0aa13593c2 /src/include/stdlib.h
parent5fa7ea419bf619bb8a2e3bcb48037726947417d9 (diff)
downloadcoreboot-e09f7ef00af02234a9e12724765c71ee29be70ec.tar.xz
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@google.com> Reviewed-on: http://review.coreboot.org/2051 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/include/stdlib.h')
-rw-r--r--src/include/stdlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index bb57ab33fb..83eb966b25 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 */
+static inline void free(void *ptr) {}
#endif
#endif /* STDLIB_H */