diff options
author | 2019-08-29 09:28:25 -0700 | |
---|---|---|
committer | 2019-08-29 09:28:25 -0700 | |
commit | 4a64489cf8e21a17fd6dd88935818ba7307ba996 (patch) | |
tree | 57c58a18b251201dccce10cc2d92c34b315b7400 /arch | |
parent | Merge tag 'mtd/fixes-for-5.3-rc7' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
parent | nds32: Mark expected switch fall-throughs (diff) | |
download | linux-4a64489cf8e21a17fd6dd88935818ba7307ba996.tar.gz linux-4a64489cf8e21a17fd6dd88935818ba7307ba996.tar.bz2 linux-4a64489cf8e21a17fd6dd88935818ba7307ba996.zip |
Merge tag 'Wimplicit-fallthrough-5.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
Pull fallthrough fixes from Gustavo A. R. Silva:
"Fix fall-through warnings on arc and nds32 for multiple
configurations"
* tag 'Wimplicit-fallthrough-5.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
nds32: Mark expected switch fall-throughs
ARC: unwind: Mark expected switch fall-through
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/kernel/unwind.c | 1 | ||||
-rw-r--r-- | arch/nds32/kernel/signal.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c index 445e4d702f43..dc05a63516f5 100644 --- a/arch/arc/kernel/unwind.c +++ b/arch/arc/kernel/unwind.c @@ -572,6 +572,7 @@ static unsigned long read_pointer(const u8 **pLoc, const void *end, #else BUILD_BUG_ON(sizeof(u32) != sizeof(value)); #endif + /* Fall through */ case DW_EH_PE_native: if (end < (const void *)(ptr.pul + 1)) return 0; diff --git a/arch/nds32/kernel/signal.c b/arch/nds32/kernel/signal.c index fe61513982b4..330b19fcd990 100644 --- a/arch/nds32/kernel/signal.c +++ b/arch/nds32/kernel/signal.c @@ -316,6 +316,7 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) regs->uregs[0] = -EINTR; break; } + /* Else, fall through */ case -ERESTARTNOINTR: regs->uregs[0] = regs->orig_r0; regs->ipc -= 4; @@ -360,6 +361,7 @@ static void do_signal(struct pt_regs *regs) switch (regs->uregs[0]) { case -ERESTART_RESTARTBLOCK: regs->uregs[15] = __NR_restart_syscall; + /* Fall through */ case -ERESTARTNOHAND: case -ERESTARTSYS: case -ERESTARTNOINTR: |