blob: 0e2a80d8db67c034730d4c1fff1dfd58feb5c423 [file] [log] [blame]
/* Copyright (C) 2010 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by the GPL v2 license that can
* be found in the LICENSE file.
*
* These files provide equivalent implementations for kernel calls for
* compatibility with files under SRC/include.
*/
#include <linux/slab.h>
#include <stdlib.h>
void *kzalloc(size_t sz, int flags)
{
return calloc(1, sz);
}
void *kcalloc(size_t n, size_t sz, int flags)
{
return calloc(n, sz);
}
void kfree(void *x)
{
free(x);
}