1
#ifndef _ASM_S390_BUG_H
2
#define _ASM_S390_BUG_H
4
#include <linux/kernel.h>
8
#ifdef CONFIG_DEBUG_BUGVERBOSE
10
#define __EMIT_BUG(x) do { \
14
".section .rodata.str,\"aMS\",@progbits,1\n" \
15
"2: .asciz \""__FILE__"\"\n" \
17
".section __bug_table,\"a\"\n" \
18
"3: .long 1b-3b,2b-3b\n" \
24
"i" (sizeof(struct bug_entry))); \
27
#else /* CONFIG_DEBUG_BUGVERBOSE */
29
#define __EMIT_BUG(x) do { \
33
".section __bug_table,\"a\"\n" \
39
"i" (sizeof(struct bug_entry))); \
42
#endif /* CONFIG_DEBUG_BUGVERBOSE */
49
#define __WARN_TAINT(taint) do { \
50
__EMIT_BUG(BUGFLAG_TAINT(taint)); \
53
#define WARN_ON(x) ({ \
54
int __ret_warn_on = !!(x); \
55
if (__builtin_constant_p(__ret_warn_on)) { \
59
if (unlikely(__ret_warn_on)) \
62
unlikely(__ret_warn_on); \
66
#define HAVE_ARCH_WARN_ON
67
#endif /* CONFIG_BUG */
69
#include <asm-generic/bug.h>
71
#endif /* _ASM_S390_BUG_H */