[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200708181144.GB11533@embeddedor>
Date: Wed, 8 Jul 2020 13:11:44 -0500
From: "Gustavo A. R. Silva" <gustavoars@...nel.org>
To: Shuah Khan <skhan@...uxfoundation.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Valentina Manea <valentina.manea.m@...il.com>,
Shuah Khan <shuah@...nel.org>, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] usbip: Use fallthrough pseudo-keyword
On Tue, Jul 07, 2020 at 02:06:26PM -0600, Shuah Khan wrote:
> On 7/7/20 1:52 PM, Gustavo A. R. Silva wrote:
> > Replace the existing /* fall through */ comments and its variants with
> > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
> > fall-through markings when it is the case.
> >
> > [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
> >
>
> Is fallthrough syntax supported on our min gcc version?
>
The __attribute__((__fallthrough__)) has been supported since GCC 7.1
and it should be no problem for early versions because fallthrough is
a macro that also expands to: do {} while (0) /* fallthrough */
> Does checkpatch or coccicheck catch these cases?
>
checkpatch does:
https://git.kernel.org/linus/f36d3eb89a43047d3eba222a8132585da25cebfd
> The patch looks good.
>
> Acked-by: Shuah Khan <skhan@...uxfoundation.org>
>
Thanks
--
Gustavo
Powered by blists - more mailing lists