Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/bfdev/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BFDEV_WARN_MSG( \

#ifndef BFDEV_BUG_ON
# define BFDEV_BUG_ON(condition) ({ \
bfdev_bool __cond = !!(condition); \
bfdev_bool __cond = !!(condition); \
if (bfdev_unlikely(__cond)) \
BFDEV_BUG(); \
bfdev_unlikely(__cond); \
Expand All @@ -52,7 +52,7 @@ BFDEV_WARN_MSG( \

#ifndef BFDEV_WARN_ON
# define BFDEV_WARN_ON(condition) ({ \
bfdev_bool __cond = !!(condition); \
bfdev_bool __cond = !!(condition); \
if (bfdev_unlikely(__cond)) \
BFDEV_WARN(); \
bfdev_unlikely(__cond); \
Expand Down
3 changes: 3 additions & 0 deletions include/bfdev/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ typedef int bfdev_state_t;
typedef bfdev_intptr_t bfdev_atomic_t;
typedef bfdev_u64 bfdev_time_t;

#define BFDEV_OK 0
#define BFDEV_ERROR -1

#define BFDEV_EQ 0
#define BFDEV_BT 1
#define BFDEV_LT -1
Expand Down
Loading