aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-10-14 18:27:21 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-10-16 13:23:47 -0400
commiteae23f2c2ac1e44f84a5f932eaad6a0dacd179d5 (patch)
tree49df6ef67f435685045a6374a074fa3af4243999 /include/asm-mips
parent754d0f239ddb35682aa322b57b7fa4a8efd2fb54 (diff)
[MIPS] IP22: Fix warning.
CC arch/mips/sgi-ip22/ip22-berr.o arch/mips/sgi-ip22/ip22-berr.c: In function 'ip22_be_interrupt': arch/mips/sgi-ip22/ip22-berr.c:100: warning: passing argument 2 of 'die_if_kernel' discards qualifiers from pointer target type Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/ptrace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h
index 85b44366343a..786f7e3c99bc 100644
--- a/include/asm-mips/ptrace.h
+++ b/include/asm-mips/ptrace.h
@@ -86,9 +86,9 @@ struct pt_regs {
86 86
87extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); 87extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit);
88 88
89extern NORET_TYPE void die(const char *, struct pt_regs *) ATTRIB_NORET; 89extern NORET_TYPE void die(const char *, const struct pt_regs *) ATTRIB_NORET;
90 90
91static inline void die_if_kernel(const char *str, struct pt_regs *regs) 91static inline void die_if_kernel(const char *str, const struct pt_regs *regs)
92{ 92{
93 if (unlikely(!user_mode(regs))) 93 if (unlikely(!user_mode(regs)))
94 die(str, regs); 94 die(str, regs);