diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2016-07-26 18:22:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 19:19:19 -0400 |
commit | a54f9aebaa9f0ea2ce6b01f12b65062fb2e74e6c (patch) | |
tree | 79c0ccd35727b3e7910f6581b620fc0a0d2fcb1d | |
parent | 2a966b77ae3ede207e787e7538b87d1011c4364e (diff) |
include/linux/mmdebug.h: add VM_WARN which maps to WARN()
This enables us to do VM_WARN(condition, "warn message");
Link: http://lkml.kernel.org/r/1464692688-6612-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/mmdebug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmdebug.h b/include/linux/mmdebug.h index de7be78c6f0e..451a811f48f2 100644 --- a/include/linux/mmdebug.h +++ b/include/linux/mmdebug.h | |||
@@ -39,6 +39,7 @@ void dump_mm(const struct mm_struct *mm); | |||
39 | #define VM_WARN_ON(cond) WARN_ON(cond) | 39 | #define VM_WARN_ON(cond) WARN_ON(cond) |
40 | #define VM_WARN_ON_ONCE(cond) WARN_ON_ONCE(cond) | 40 | #define VM_WARN_ON_ONCE(cond) WARN_ON_ONCE(cond) |
41 | #define VM_WARN_ONCE(cond, format...) WARN_ONCE(cond, format) | 41 | #define VM_WARN_ONCE(cond, format...) WARN_ONCE(cond, format) |
42 | #define VM_WARN(cond, format...) WARN(cond, format) | ||
42 | #else | 43 | #else |
43 | #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) | 44 | #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) |
44 | #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond) | 45 | #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond) |
@@ -47,6 +48,7 @@ void dump_mm(const struct mm_struct *mm); | |||
47 | #define VM_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond) | 48 | #define VM_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond) |
48 | #define VM_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) | 49 | #define VM_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) |
49 | #define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond) | 50 | #define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond) |
51 | #define VM_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond) | ||
50 | #endif | 52 | #endif |
51 | 53 | ||
52 | #ifdef CONFIG_DEBUG_VIRTUAL | 54 | #ifdef CONFIG_DEBUG_VIRTUAL |