blob: c04ecfe03f7ffeca4781049faa3a0018a91ea368 [file] [log] [blame]
Jiri Slaby59ea7462008-06-12 13:56:40 +02001#ifndef LINUX_MM_DEBUG_H
2#define LINUX_MM_DEBUG_H 1
3
Jiri Slaby59ea7462008-06-12 13:56:40 +02004#ifdef CONFIG_DEBUG_VM
5#define VM_BUG_ON(cond) BUG_ON(cond)
6#else
Andi Kleen4e60c862010-08-09 17:19:03 -07007#define VM_BUG_ON(cond) do { (void)(cond); } while (0)
Jiri Slaby59ea7462008-06-12 13:56:40 +02008#endif
9
10#ifdef CONFIG_DEBUG_VIRTUAL
11#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
12#else
Ingo Molnar7aa413d2008-06-19 13:28:11 +020013#define VIRTUAL_BUG_ON(cond) do { } while (0)
Jiri Slaby59ea7462008-06-12 13:56:40 +020014#endif
15
16#endif