diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-12-13 16:00:44 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-12-13 16:07:21 -0500 |
commit | f2feceddae6f3bd3722247f3458860b955f539bc (patch) | |
tree | 6e8405e81ac080995db7cc20ebd51c1e4de5e4cb /include/linux/bug.h | |
parent | fa36882a73fbb3fd771c506641a1d70d51c07068 (diff) |
Shim layer updates
Diffstat (limited to 'include/linux/bug.h')
-rw-r--r-- | include/linux/bug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bug.h b/include/linux/bug.h index aa5776c7..89cdd30d 100644 --- a/include/linux/bug.h +++ b/include/linux/bug.h @@ -15,7 +15,7 @@ #define BUG_ON(cond) assert(!(cond)) #define WARN_ON_ONCE(cond) assert(!(cond)) -#define WARN_ONCE(cond, msg) assert(!(cond)) +#define WARN_ONCE(cond, msg) ({ bool _r = (cond); if (_r) assert(0); _r; }) #define __WARN() assert(0) #define __WARN_printf(arg...) assert(0) |