Commit 7f5aa115 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/mm: add fallthrough annotations

Commit a035d552 ("Makefile: Globally enable fall-through warning")
enables fall-through warnings globally. Add missing annotations.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent ffbd2685
...@@ -327,6 +327,7 @@ static noinline void do_fault_error(struct pt_regs *regs, int access, ...@@ -327,6 +327,7 @@ static noinline void do_fault_error(struct pt_regs *regs, int access,
case VM_FAULT_BADACCESS: case VM_FAULT_BADACCESS:
if (access == VM_EXEC && signal_return(regs) == 0) if (access == VM_EXEC && signal_return(regs) == 0)
break; break;
/* fallthrough */
case VM_FAULT_BADMAP: case VM_FAULT_BADMAP:
/* Bad memory access. Check if it is kernel or user space. */ /* Bad memory access. Check if it is kernel or user space. */
if (user_mode(regs)) { if (user_mode(regs)) {
...@@ -336,7 +337,9 @@ static noinline void do_fault_error(struct pt_regs *regs, int access, ...@@ -336,7 +337,9 @@ static noinline void do_fault_error(struct pt_regs *regs, int access,
do_sigsegv(regs, si_code); do_sigsegv(regs, si_code);
break; break;
} }
/* fallthrough */
case VM_FAULT_BADCONTEXT: case VM_FAULT_BADCONTEXT:
/* fallthrough */
case VM_FAULT_PFAULT: case VM_FAULT_PFAULT:
do_no_context(regs); do_no_context(regs);
break; break;
......
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