Commit 134115cd authored by Jesper Nilsson's avatar Jesper Nilsson

CRIS: Avoid warning in cris mm/fault.c

Move declaration of waitqueue to beginning of block,
avoids warning about mixing declarations and code.
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 4806f8bb
......@@ -217,6 +217,9 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
/* User mode accesses just cause a SIGSEGV */
if (user_mode(regs)) {
#ifdef CONFIG_NO_SEGFAULT_TERMINATION
DECLARE_WAIT_QUEUE_HEAD(wq);
#endif
printk(KERN_NOTICE "%s (pid %d) segfaults for page "
"address %08lx at pc %08lx\n",
tsk->comm, tsk->pid,
......@@ -227,7 +230,6 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
show_registers(regs);
#ifdef CONFIG_NO_SEGFAULT_TERMINATION
DECLARE_WAIT_QUEUE_HEAD(wq);
wait_event_interruptible(wq, 0 == 1);
#else
info.si_signo = SIGSEGV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment