Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43404
b: refs/heads/master
c: 7174d85
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Pitre authored and Russell King committed Dec 7, 2006
1 parent af05b0d commit 9bfef68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca7aa4de81178babca16df67a7b72a063a7c6891
refs/heads/master: 7174d852603ced7a161f47c6e3958073706114a9
7 changes: 2 additions & 5 deletions trunk/arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,9 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs)
notify_die("unknown data abort code", regs, &info, instr, 0);
}

void __attribute__((noreturn)) __bug(const char *file, int line, void *data)
void __attribute__((noreturn)) __bug(const char *file, int line)
{
printk(KERN_CRIT"kernel BUG at %s:%d!", file, line);
if (data)
printk(" - extra data = %p", data);
printk("\n");
printk(KERN_CRIT"kernel BUG at %s:%d!\n", file, line);
*(int *)0 = 0;

/* Avoid "noreturn function does return" */
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-arm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

#ifdef CONFIG_BUG
#ifdef CONFIG_DEBUG_BUGVERBOSE
extern void __bug(const char *file, int line, void *data) __attribute__((noreturn));
extern void __bug(const char *file, int line) __attribute__((noreturn));

/* give file/line information */
#define BUG() __bug(__FILE__, __LINE__, NULL)
#define BUG() __bug(__FILE__, __LINE__)

#else

Expand Down

0 comments on commit 9bfef68

Please sign in to comment.