bug.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) bug.h (19d436268dde95389c616bb3819da73f0a8b28a8)
1#ifndef __ASM_SH_BUG_H
2#define __ASM_SH_BUG_H
3
4#include <linux/linkage.h>
5
6#define TRAPA_BUG_OPCODE 0xc33e /* trapa #0x3e */
7#define BUGFLAG_UNWINDER (1 << 1)
8

--- 36 unchanged lines hidden (view full) ---

45 _EMIT_BUG_ENTRY \
46 : \
47 : "n" (TRAPA_BUG_OPCODE), \
48 "i" (__FILE__), \
49 "i" (__LINE__), "i" (0), \
50 "i" (sizeof(struct bug_entry))); \
51} while (0)
52
1#ifndef __ASM_SH_BUG_H
2#define __ASM_SH_BUG_H
3
4#include <linux/linkage.h>
5
6#define TRAPA_BUG_OPCODE 0xc33e /* trapa #0x3e */
7#define BUGFLAG_UNWINDER (1 << 1)
8

--- 36 unchanged lines hidden (view full) ---

45 _EMIT_BUG_ENTRY \
46 : \
47 : "n" (TRAPA_BUG_OPCODE), \
48 "i" (__FILE__), \
49 "i" (__LINE__), "i" (0), \
50 "i" (sizeof(struct bug_entry))); \
51} while (0)
52
53#define __WARN_TAINT(taint) \
53#define __WARN_FLAGS(flags) \
54do { \
55 __asm__ __volatile__ ( \
56 "1:\t.short %O0\n" \
57 _EMIT_BUG_ENTRY \
58 : \
59 : "n" (TRAPA_BUG_OPCODE), \
60 "i" (__FILE__), \
61 "i" (__LINE__), \
54do { \
55 __asm__ __volatile__ ( \
56 "1:\t.short %O0\n" \
57 _EMIT_BUG_ENTRY \
58 : \
59 : "n" (TRAPA_BUG_OPCODE), \
60 "i" (__FILE__), \
61 "i" (__LINE__), \
62 "i" (BUGFLAG_TAINT(taint)), \
62 "i" (BUGFLAG_WARNING|(flags)), \
63 "i" (sizeof(struct bug_entry))); \
64} while (0)
65
66#define WARN_ON(x) ({ \
67 int __ret_warn_on = !!(x); \
68 if (__builtin_constant_p(__ret_warn_on)) { \
69 if (__ret_warn_on) \
70 __WARN(); \

--- 49 unchanged lines hidden ---
63 "i" (sizeof(struct bug_entry))); \
64} while (0)
65
66#define WARN_ON(x) ({ \
67 int __ret_warn_on = !!(x); \
68 if (__builtin_constant_p(__ret_warn_on)) { \
69 if (__ret_warn_on) \
70 __WARN(); \

--- 49 unchanged lines hidden ---