bug.c (0862ca422b79cb5aa70823ee0f07f6b468f86070) | bug.c (1b4cfe3c0a30dde968fb43c577a8d7e262a145ee) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 Generic support for BUG() 4 5 This respects the following config options: 6 7 CONFIG_BUG - emit BUG traps. Nothing happens without this. 8 CONFIG_GENERIC_BUG - enable this code. --- 136 unchanged lines hidden (view full) --- 145 struct bug_entry *bug; 146 const char *file; 147 unsigned line, warning, once, done; 148 149 if (!is_valid_bugaddr(bugaddr)) 150 return BUG_TRAP_TYPE_NONE; 151 152 bug = find_bug(bugaddr); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 Generic support for BUG() 4 5 This respects the following config options: 6 7 CONFIG_BUG - emit BUG traps. Nothing happens without this. 8 CONFIG_GENERIC_BUG - enable this code. --- 136 unchanged lines hidden (view full) --- 145 struct bug_entry *bug; 146 const char *file; 147 unsigned line, warning, once, done; 148 149 if (!is_valid_bugaddr(bugaddr)) 150 return BUG_TRAP_TYPE_NONE; 151 152 bug = find_bug(bugaddr); |
153 if (!bug) 154 return BUG_TRAP_TYPE_NONE; |
|
153 154 file = NULL; 155 line = 0; 156 warning = 0; 157 158 if (bug) { 159#ifdef CONFIG_DEBUG_BUGVERBOSE 160#ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS --- 61 unchanged lines hidden --- | 155 156 file = NULL; 157 line = 0; 158 warning = 0; 159 160 if (bug) { 161#ifdef CONFIG_DEBUG_BUGVERBOSE 162#ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS --- 61 unchanged lines hidden --- |