aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-v850/bug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-v850/bug.h')
-rw-r--r--include/asm-v850/bug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-v850/bug.h b/include/asm-v850/bug.h
index c778916..b0ed2d3 100644
--- a/include/asm-v850/bug.h
+++ b/include/asm-v850/bug.h
@@ -14,9 +14,12 @@
#ifndef __V850_BUG_H__
#define __V850_BUG_H__
+#ifdef CONFIG_BUG
extern void __bug (void) __attribute__ ((noreturn));
#define BUG() __bug()
#define HAVE_ARCH_BUG
+#endif
+
#include <asm-generic/bug.h>
#endif /* __V850_BUG_H__ */