mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
tools: Provide a definition of WARN_ON
The definition of WARN_ON being used by the radix tree test suite was deficient in two ways: it did not provide a return value, and it stopped execution instead of continuing. This version of WARN_ON tells you which file & line the assertion was triggered in. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
This commit is contained in:
parent
c68a2aab33
commit
b246a9d267
2 changed files with 8 additions and 1 deletions
|
@ -24,7 +24,6 @@
|
|||
#endif
|
||||
|
||||
#define BUG_ON(expr) assert(!(expr))
|
||||
#define WARN_ON(expr) assert(!(expr))
|
||||
#define __init
|
||||
#define __must_check
|
||||
#define panic(expr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue