blob: 8a5509877192b903390b7851ae77df96c9e7fad1 [file] [log] [blame]
Jiri Slaby59ea7462008-06-12 13:56:40 +02001#ifndef LINUX_MM_DEBUG_H
2#define LINUX_MM_DEBUG_H 1
3
4#include <linux/autoconf.h>
5
6#ifdef CONFIG_DEBUG_VM
7#define VM_BUG_ON(cond) BUG_ON(cond)
8#else
Ingo Molnar7aa413d2008-06-19 13:28:11 +02009#define VM_BUG_ON(cond) do { } while (0)
Jiri Slaby59ea7462008-06-12 13:56:40 +020010#endif
11
12#ifdef CONFIG_DEBUG_VIRTUAL
13#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
14#else
Ingo Molnar7aa413d2008-06-19 13:28:11 +020015#define VIRTUAL_BUG_ON(cond) do { } while (0)
Jiri Slaby59ea7462008-06-12 13:56:40 +020016#endif
17
18#endif