lkml.org 
[lkml]   [2020]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] nios2: signal: Mark expected switch fall-through
Date


> -----Original Message-----
> From: Gustavo A. R. Silva <gustavoars@kernel.org>
> Sent: Tuesday, June 9, 2020 1:37 AM
> To: Tan, Ley Foon <ley.foon.tan@intel.com>; Christian Brauner
> <christian.brauner@ubuntu.com>
> Cc: linux-kernel@vger.kernel.org; Gustavo A. R. Silva
> <gustavo@embeddedor.com>
> Subject: [PATCH] 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>
> ---
Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>

Will merge to coming release.
Thanks.

Regards
Ley Foon

\
 
 \ /
  Last update: 2020-06-12 08:21    [W:0.041 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site