Commit 391d0122 authored by Daniel Dickman's avatar Daniel Dickman Committed by Linus Torvalds

[PATCH] m32r: use generic bug.h

Signed-off-by: default avatarDaniel Dickman <didickman@yahoo.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a99e0107
#ifndef _M32R_BUG_H
#define _M32R_BUG_H
#define BUG() do { \
printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
} while (0)
#define PAGE_BUG(page) do { BUG(); } while (0)
#define BUG_ON(condition) \
do { if (unlikely((condition)!=0)) BUG(); } while(0)
#define WARN_ON(condition) do { \
if (unlikely((condition)!=0)) { \
printk("Badness in %s at %s:%d\n", __FUNCTION__, \
__FILE__, __LINE__); \
dump_stack(); \
} \
} while (0)
#endif /* _M32R_BUG_H */
#include <asm-generic/bug.h>
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment