linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN()
@ 2016-05-31 11:04 Aneesh Kumar K.V
  2016-05-31 11:04 ` [PATCH 2/2] powerpc/mm: check for irq disabled() only if DEBUG_VM is enabled Aneesh Kumar K.V
  2016-06-07  6:52 ` [PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN() Anshuman Khandual
  0 siblings, 2 replies; 5+ messages in thread
From: Aneesh Kumar K.V @ 2016-05-31 11:04 UTC (permalink / raw)
  To: akpm, mpe; +Cc: linux-mm, linux-kernel, Aneesh Kumar K.V

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

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-07  8:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-31 11:04 [PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN() Aneesh Kumar K.V
2016-05-31 11:04 ` [PATCH 2/2] powerpc/mm: check for irq disabled() only if DEBUG_VM is enabled Aneesh Kumar K.V
2016-06-07  6:54   ` Anshuman Khandual
2016-06-07  8:36   ` Balbir Singh
2016-06-07  6:52 ` [PATCH 1/2] mm/debug: Add VM_WARN which maps to WARN() Anshuman Khandual

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox