fix some errors and warnings in the porting
[ust.git] / include / ust / kernelcompat.h
index 5cc5eaa22e70b963795619b963c1c2f8ed9504da..4b43b7e3de02b03ab61156e06719b4ffe9600531 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
@@ -82,12 +84,6 @@ static inline long IS_ERR(const void *ptr)
 
 #define GFP_KERNEL
 
-/* PRINTK */
-
-#include <stdio.h>
-#define printk(fmt, args...) printf(fmt, ## args)
-
-
 /* ATTRIBUTES */
 
 #define ____cacheline_aligned
@@ -203,4 +199,8 @@ static inline u32 trace_clock_freq_scale(void)
 }
 
 
+/* PERCPU */
+
+#define __get_cpu_var(x) x
+
 #endif /* KERNELCOMPAT_H */
This page took 0.023115 seconds and 4 git commands to generate.