diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2016-12-19 11:07:17 -0500 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2017-01-27 21:29:39 -0500 |
commit | b246a9d2671f4f6cfab3f98199568e0b3028f6e5 (patch) | |
tree | b8ae5d681acf9e8bf66ff49143440fd34f5cdd5c /tools/testing/radix-tree/linux/kernel.h | |
parent | c68a2aab3300df4106f368568bd7361d6f465993 (diff) |
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>
Diffstat (limited to 'tools/testing/radix-tree/linux/kernel.h')
-rw-r--r-- | tools/testing/radix-tree/linux/kernel.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/radix-tree/linux/kernel.h b/tools/testing/radix-tree/linux/kernel.h index 1cd72a84a089..9681463c91e2 100644 --- a/tools/testing/radix-tree/linux/kernel.h +++ b/tools/testing/radix-tree/linux/kernel.h | |||
@@ -24,7 +24,6 @@ | |||
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #define BUG_ON(expr) assert(!(expr)) | 26 | #define BUG_ON(expr) assert(!(expr)) |
27 | #define WARN_ON(expr) assert(!(expr)) | ||
28 | #define __init | 27 | #define __init |
29 | #define __must_check | 28 | #define __must_check |
30 | #define panic(expr) | 29 | #define panic(expr) |