]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/asm-generic/bug.h
[PATCH] Generic BUG implementation
[mirror_ubuntu-artful-kernel.git] / include / asm-generic / bug.h
index c92ae0f166ff44f1757f456a132202b22f0f5368..47e3561638b15b2647ebcc858ca0ea9615f0a319 100644 (file)
@@ -4,6 +4,22 @@
 #include <linux/compiler.h>
 
 #ifdef CONFIG_BUG
+
+#ifdef CONFIG_GENERIC_BUG
+#ifndef __ASSEMBLY__
+struct bug_entry {
+       unsigned long   bug_addr;
+#ifdef CONFIG_DEBUG_BUGVERBOSE
+       const char      *file;
+       unsigned short  line;
+#endif
+       unsigned short  flags;
+};
+#endif         /* __ASSEMBLY__ */
+
+#define BUGFLAG_WARNING        (1<<0)
+#endif /* CONFIG_GENERIC_BUG */
+
 #ifndef HAVE_ARCH_BUG
 #define BUG() do { \
        printk("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \