Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1410157 > unrolled thread

[PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN()

Started by"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
First post2016-05-31 13:10 +0200
Last post2016-06-07 09:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN() "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-05-31 13:10 +0200
    Re: [PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN() Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2016-06-07 09:00 +0200

#1410157 — [PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN()

From"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Date2016-05-31 13:10 +0200
Subject[PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN()
Message-ID<rEPIC-1X8-19@gated-at.bofh.it>
This enables us to do VM_WARN(condition, "warn message");
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
 include/linux/mmdebug.h | 2 ++
 1 file changed, 2 insertions(+)

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);
 #define VM_WARN_ON(cond) WARN_ON(cond)
 #define VM_WARN_ON_ONCE(cond) WARN_ON_ONCE(cond)
 #define VM_WARN_ONCE(cond, format...) WARN_ONCE(cond, format)
+#define VM_WARN(cond, format...) WARN(cond, format)
 #else
 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond)
 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond)
@@ -47,6 +48,7 @@ void dump_mm(const struct mm_struct *mm);
 #define VM_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond)
 #define VM_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond)
 #define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
+#define VM_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
 #endif
 
 #ifdef CONFIG_DEBUG_VIRTUAL
-- 
2.7.4

[toc] | [next] | [standalone]


#1415770

FromAnshuman Khandual <khandual@linux.vnet.ibm.com>
Date2016-06-07 09:00 +0200
Message-ID<rHj9w-7GF-29@gated-at.bofh.it>
In reply to#1410157
On 05/31/2016 04:34 PM, Aneesh Kumar K.V wrote:
> This enables us to do VM_WARN(condition, "warn message");
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>

Reviewed-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web