X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fvzalloc.h;fp=wrapper%2Fvzalloc.h;h=0000000000000000000000000000000000000000;hb=0ca42eb7127913b7f35bcacc3bccc8ebedb429c5;hp=eedaf8da5717c7eb8a65edf60bf6de0f7fc0349c;hpb=b7d81b1a35cb202148b7f53080e0abcb15f0e2ea;p=lttng-modules.git diff --git a/wrapper/vzalloc.h b/wrapper/vzalloc.h deleted file mode 100644 index eedaf8da..00000000 --- a/wrapper/vzalloc.h +++ /dev/null @@ -1,34 +0,0 @@ -/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) - * - * wrapper/vzalloc.h - * - * Copyright (C) 2015 Michael Jeanson - */ - -#ifndef _LTTNG_WRAPPER_VZALLOC_H -#define _LTTNG_WRAPPER_VZALLOC_H - -#include -#include - -#if LTTNG_KERNEL_RANGE(2,6,36, 2,6,37) -static inline -void *lttng_vzalloc(unsigned long size) -{ - void *ret; - ret = vmalloc(size); - if (!ret) - return NULL; - memset(ret, 0, size); - return ret; -} -#else -static inline -void *lttng_vzalloc(unsigned long size) -{ - return vzalloc(size); -} -#endif - - -#endif /* _LTTNG_WRAPPER_VZALLOC_H */