| #include <linux/kernel.h> |
| #ifdef CONFIG_DEBUG_BUGVERBOSE |
| #define __EMIT_BUG(x) do { \ |
| ".section .rodata.str,\"aMS\",@progbits,1\n" \ |
| "2: .asciz \""__FILE__"\"\n" \ |
| ".section __bug_table,\"aw\"\n" \ |
| "3: .long 1b-3b,2b-3b\n" \ |
| "i" (sizeof(struct bug_entry))); \ |
| #else /* CONFIG_DEBUG_BUGVERBOSE */ |
| #define __EMIT_BUG(x) do { \ |
| ".section __bug_table,\"aw\"\n" \ |
| "i" (sizeof(struct bug_entry))); \ |
| #endif /* CONFIG_DEBUG_BUGVERBOSE */ |
| #define __WARN_FLAGS(flags) do { \ |
| __EMIT_BUG(BUGFLAG_WARNING|(flags)); \ |
| int __ret_warn_on = !!(x); \ |
| if (__builtin_constant_p(__ret_warn_on)) { \ |
| if (unlikely(__ret_warn_on)) \ |
| unlikely(__ret_warn_on); \ |
| #define HAVE_ARCH_WARN_ON |
| #include <asm-generic/bug.h> |
| #endif /* _ASM_S390_BUG_H */ |