#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)
/* ATTRIBUTES */
+/* FIXME: define this */
#define ____cacheline_aligned
/* MATH */
}
#endif
+#include <sys/time.h>
+
static inline u64 trace_clock_read64(void)
{
struct timeval tv;
return 1;
}
-
-/* PERCPU */
-
-#define __get_cpu_var(x) x
-
#endif /* KERNELCOMPAT_H */
#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 */