]> git.baikalelectronics.ru Git - kernel.git/commit
nios2: signal: Mark expected switch fall-through
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 12 Jun 2020 06:04:49 +0000 (14:04 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Fri, 12 Jun 2020 06:04:49 +0000 (14:04 +0800)
commit1219a9e8454798f37f36fd1f80c0ef36e2add263
tree1f876f877840f5ea1f3ffeb49e36f20ddb6841c4
parent7d585f83d94d61d3bdac5518ba22acded9790263
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>
arch/nios2/kernel/signal.c