X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Fust%2Fkernelcompat.h;h=567ad03ea6d4b8162a91020283ba19d32dec5985;hb=909bc43f70be2b1d3efcefe33121ee1e99d9895b;hp=da2326192928cd3d81e233a1f4120d2598e101fe;hpb=b73a4c471dc987ea8548632dffb3c7050de77dd0;p=ust.git diff --git a/include/ust/kernelcompat.h b/include/ust/kernelcompat.h index da23261..567ad03 100644 --- a/include/ust/kernelcompat.h +++ b/include/ust/kernelcompat.h @@ -22,6 +22,8 @@ #define KERN_ALERT "" #define KERN_WARNING "" +#define WARN_ON_ONCE(msg) WARN_ON(msg) + /* ERROR OPS */ #define MAX_ERRNO 4095 @@ -71,17 +73,8 @@ static inline long IS_ERR(const void *ptr) /* MALLOCATION */ -#include - -#define kmalloc(s, t) malloc(s) -#define kzalloc(s, t) zmalloc(s) -#define kfree(p) free((void *)p) -#define kstrdup(s, t) strdup(s) - #define zmalloc(s) calloc(1, s) -#define GFP_KERNEL - /* ATTRIBUTES */ #define ____cacheline_aligned