s390/mm: add fallthrough annotations
Commit a035d552a93b ("Makefile: Globally enable fall-through warning") enables fall-through warnings globally. Add missing annotations. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
ffbd268506
commit
7f5aa1154b
@ -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,
|
|||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user