[PATCH 12/13] barebox-wrapper: Add kcalloc and __vmalloc
Alexander Stein
alexander.stein at systec-electronic.com
Thu Mar 17 03:00:28 PDT 2016
They call xzalloc and malloc respectively.
Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
include/linux/barebox-wrapper.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h
index 67b332e..b57c58c 100644
--- a/include/linux/barebox-wrapper.h
+++ b/include/linux/barebox-wrapper.h
@@ -6,7 +6,9 @@
#define kmalloc(len, mode) malloc(len)
#define kzalloc(len, mode) xzalloc(len)
+#define kcalloc(n, len, mode) xzalloc(n * len)
#define vmalloc(len) malloc(len)
+#define __vmalloc(len, mode, pgsz) malloc(len)
static inline void kfree(const void *block)
{
free((void *)block);
--
2.7.3
More information about the barebox
mailing list