summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2020-06-12 08:04:49 +0200
committerLey Foon Tan <ley.foon.tan@intel.com>2020-06-12 08:04:49 +0200
commit6b57fa4d374bb8c005dee396c56598c14b9c01a6 (patch)
tree1f876f877840f5ea1f3ffeb49e36f20ddb6841c4 /arch/nios2
parentLinux 5.7 (diff)
downloadlinux-6b57fa4d374bb8c005dee396c56598c14b9c01a6.tar.xz
linux-6b57fa4d374bb8c005dee396c56598c14b9c01a6.zip
nios2: signal: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through. Fix the following warning through the use of the new the new pseudo-keyword fallthrough; arch/nios2/kernel/signal.c:254:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 254 | restart = -2; | ~~~~~~~~^~~~ arch/nios2/kernel/signal.c:255:3: note: here 255 | case ERESTARTNOHAND: | ^~~~ Reported-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/kernel/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nios2/kernel/signal.c b/arch/nios2/kernel/signal.c
index a42dd09c6578..d8a087cf2b42 100644
--- a/arch/nios2/kernel/signal.c
+++ b/arch/nios2/kernel/signal.c
@@ -252,6 +252,7 @@ static int do_signal(struct pt_regs *regs)
switch (retval) {
case ERESTART_RESTARTBLOCK:
restart = -2;
+ fallthrough;
case ERESTARTNOHAND:
case ERESTARTSYS:
case ERESTARTNOINTR: