kmalloc, kfree, etc => malloc, free, etc
[ust.git] / include / ust / kernelcompat.h
index 032030ac1f1526cb252ab94776a43af83c66f146..567ad03ea6d4b8162a91020283ba19d32dec5985 100644 (file)
@@ -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 <stdlib.h>
-
-#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
@@ -197,4 +190,8 @@ static inline u32 trace_clock_freq_scale(void)
 }
 
 
+/* PERCPU */
+
+#define __get_cpu_var(x) x
+
 #endif /* KERNELCOMPAT_H */
This page took 0.022922 seconds and 4 git commands to generate.