kernelcompat: remove old definitions that are now unused
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Thu, 4 Mar 2010 17:14:06 +0000 (12:14 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Thu, 4 Mar 2010 20:34:49 +0000 (15:34 -0500)
include/ust/kernelcompat.h
include/usterr.h

index 567ad03ea6d4b8162a91020283ba19d32dec5985..4514b7986f0be327a0b3fdfc74d3d9d85731464a 100644 (file)
@@ -3,9 +3,6 @@
 
 #include <kcompat.h>
 
-#include <string.h>
-#include <sys/time.h>
-
 /* FIXME: libkcompat must not define arch-specific local ops, as ust *must*
  * fallback to the normal atomic ops. Fix things so we don't add them and
  * break things accidentally.
         const typeof( ((type *)0)->member ) *__mptr = (ptr);    \
         (type *)( (char *)__mptr - offsetof(type,member) );})
 
-#define KERN_DEBUG ""
-#define KERN_NOTICE ""
-#define KERN_INFO ""
-#define KERN_ERR ""
-#define KERN_ALERT ""
-#define KERN_WARNING ""
-
-#define WARN_ON_ONCE(msg) WARN_ON(msg)
-
 /* ERROR OPS */
-
 #define MAX_ERRNO      4095
 
 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
@@ -77,6 +64,7 @@ static inline long IS_ERR(const void *ptr)
 
 /* ATTRIBUTES */
 
+/* FIXME: define this */
 #define ____cacheline_aligned
 
 /* MATH */
@@ -166,6 +154,8 @@ static inline u64 trace_clock_read64(void)
 }
 #endif
 
+#include <sys/time.h>
+
 static inline u64 trace_clock_read64(void)
 {
        struct timeval tv;
@@ -189,9 +179,4 @@ static inline u32 trace_clock_freq_scale(void)
        return 1;
 }
 
-
-/* PERCPU */
-
-#define __get_cpu_var(x) x
-
 #endif /* KERNELCOMPAT_H */
index 6b8817764803f66f55bb2b19ddac83d8987f34bb..067866ab23c0117086f52ad334da9cb1c6b25148 100644 (file)
@@ -80,5 +80,6 @@ extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...);
 
 #define BUG_ON(condition) do { if (unlikely(condition)) ERR("condition not respected (BUG)"); } while(0)
 #define WARN_ON(condition) do { if (unlikely(condition)) WARN("condition not respected on line %s:%d", __FILE__, __LINE__); } while(0)
+#define WARN_ON_ONCE(condition) WARN_ON(condition)
 
 #endif /* USTERR_H */
This page took 0.024929 seconds and 4 git commands to generate.