diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2019-07-29 07:39:44 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-07-29 18:05:03 +0200 |
commit | 7f5aa1154b1a30653a12e0f7f473494de77ad670 (patch) | |
tree | 1abaf7dfc1dd1404bc8b1fbeced29149cd68f53c /arch/s390 | |
parent | ffbd268506ca70c2cd18238762a29b9a47d8d9fa (diff) | |
download | linux-7f5aa1154b1a30653a12e0f7f473494de77ad670.tar.gz linux-7f5aa1154b1a30653a12e0f7f473494de77ad670.tar.bz2 linux-7f5aa1154b1a30653a12e0f7f473494de77ad670.zip |
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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/mm/fault.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index 63507662828f..7b0bb475c166 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c @@ -327,6 +327,7 @@ static noinline void do_fault_error(struct pt_regs *regs, int access, case VM_FAULT_BADACCESS: if (access == VM_EXEC && signal_return(regs) == 0) break; + /* fallthrough */ case VM_FAULT_BADMAP: /* Bad memory access. Check if it is kernel or user space. */ 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); break; } + /* fallthrough */ case VM_FAULT_BADCONTEXT: + /* fallthrough */ case VM_FAULT_PFAULT: do_no_context(regs); break; |