-#else /* !__KERNEL__ */
-# ifdef LIBCFS_DEBUG
-# undef NDEBUG
-# include <assert.h>
-# define LASSERT(e) assert(e)
-# define LASSERTF(cond, ...) \
-do { \
- if (!(cond)) \
- CERROR(__VA_ARGS__); \
- assert(cond); \
-} while (0)
-# define LBUG() assert(0)
-# ifdef CONFIG_LUSTRE_DEBUG_EXPENSIVE_CHECK
-# define LINVRNT(exp) LASSERT(exp)
-# else
-# define LINVRNT(exp) ((void)sizeof!!(exp))
-# endif
-# else
-# define LASSERT(e) ((void)sizeof!!(e))
-# define LASSERTF(cond, ...) ((void)sizeof!!(cond))
-# define LBUG() ((void)(0))
-# define LINVRNT(exp) ((void)sizeof!!(exp))
-# endif /* LIBCFS_DEBUG */
-# define KLASSERT(e) ((void)0)
-# define printk printf
-#define LIBCFS_ALLOC_GFP(ptr, size, mask) \
-do { \
- (ptr) = calloc(1, size); \
-} while (0)
-# define LIBCFS_FREE(ptr, size) do { free(ptr); } while((size) - (size))
-# define LIBCFS_ALLOC(ptr, size) \
- LIBCFS_ALLOC_GFP(ptr, size, 0)
-# define LIBCFS_CPT_ALLOC_GFP(ptr, cptab, cpt, size, mask) \
- LIBCFS_ALLOC(ptr, size)
-# define LIBCFS_CPT_ALLOC(ptr, cptab, cpt, size) \
- LIBCFS_ALLOC(ptr, size)
-
-void libcfs_debug_dumplog(void);
-int libcfs_debug_init(unsigned long bufsize);
-int libcfs_debug_cleanup(void);
-
-#define libcfs_debug_dumpstack(tsk) ((void)0)
-
-/*
- * Generic compiler-dependent macros required for kernel
- * build go below this comment. Actual compiler/compiler version
- * specific implementations come from the above header files
- */
-#define likely(x) __builtin_expect(!!(x), 1)
-#define unlikely(x) __builtin_expect(!!(x), 0)
-/* !__KERNEL__ */
-#endif
-