aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/system.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-10-13 12:07:54 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:32:42 -0400
commit178086c86ac9738a76f1462e9ee4cbe8fd3b8c51 (patch)
tree7981d13e3037b51acfe83b7280804ea73c6b7013 /include/asm-mips/system.h
parent6ec25809c143d875ed17b2e85d1dd894a1f4aba4 (diff)
Don't print file name and line in die and die_if_kernel.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/system.h')
-rw-r--r--include/asm-mips/system.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h
index b126545e96ed..330c4e497af3 100644
--- a/include/asm-mips/system.h
+++ b/include/asm-mips/system.h
@@ -434,15 +434,13 @@ extern void *set_vi_srs_handler (int n, void *addr, int regset);
434extern void *set_except_vector(int n, void *addr); 434extern void *set_except_vector(int n, void *addr);
435extern void per_cpu_trap_init(void); 435extern void per_cpu_trap_init(void);
436 436
437extern NORET_TYPE void __die(const char *, struct pt_regs *, const char *file, 437extern NORET_TYPE void die(const char *, struct pt_regs *);
438 const char *func, unsigned long line) ATTRIB_NORET; 438
439extern void __die_if_kernel(const char *, struct pt_regs *, const char *file, 439static inline void die_if_kernel(const char *str, struct pt_regs *regs)
440 const char *func, unsigned long line); 440{
441 441 if (unlikely(!user_mode(regs)))
442#define die(msg, regs) \ 442 die(str, regs);
443 __die(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__) 443}
444#define die_if_kernel(msg, regs) \
445 __die_if_kernel(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__)
446 444
447extern int stop_a_enabled; 445extern int stop_a_enabled;
448 446