* [PATCH] ntb: ntb_transport: Mark expected switch fall-throughs
@ 2018-10-05 7:12 Gustavo A. R. Silva
2018-10-05 17:03 ` Allen Hubbe
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo A. R. Silva @ 2018-10-05 7:12 UTC (permalink / raw)
To: Jon Mason, Dave Jiang, Allen Hubbe
Cc: linux-ntb, linux-kernel, Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1373888 ("Missing break in switch")
Addresses-Coverity-ID: 1373889 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
drivers/ntb/ntb_transport.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 9398959..c643b9c 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data,
case DMA_TRANS_READ_FAILED:
case DMA_TRANS_WRITE_FAILED:
entry->errors++;
+ /* fall through */
case DMA_TRANS_ABORTED:
{
struct ntb_transport_qp *qp = entry->qp;
@@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data,
case DMA_TRANS_READ_FAILED:
case DMA_TRANS_WRITE_FAILED:
entry->errors++;
+ /* fall through */
case DMA_TRANS_ABORTED:
{
void __iomem *offset =
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ntb: ntb_transport: Mark expected switch fall-throughs
2018-10-05 7:12 [PATCH] ntb: ntb_transport: Mark expected switch fall-throughs Gustavo A. R. Silva
@ 2018-10-05 17:03 ` Allen Hubbe
2018-10-31 20:39 ` Jon Mason
0 siblings, 1 reply; 3+ messages in thread
From: Allen Hubbe @ 2018-10-05 17:03 UTC (permalink / raw)
To: gustavo; +Cc: Jon Mason, dave.jiang, linux-ntb, linux-kernel
On Fri, Oct 5, 2018 at 3:12 AM Gustavo A. R. Silva
<gustavo@embeddedor.com> wrote:
> In preparation to enabling -Wimplicit-fallthrough, mark switch cases
> where we are expecting to fall through.
>
> Addresses-Coverity-ID: 1373888 ("Missing break in switch")
> Addresses-Coverity-ID: 1373889 ("Missing break in switch")
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
> ---
> drivers/ntb/ntb_transport.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
> index 9398959..c643b9c 100644
> --- a/drivers/ntb/ntb_transport.c
> +++ b/drivers/ntb/ntb_transport.c
> @@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data,
> case DMA_TRANS_READ_FAILED:
> case DMA_TRANS_WRITE_FAILED:
> entry->errors++;
> + /* fall through */
> case DMA_TRANS_ABORTED:
> {
> struct ntb_transport_qp *qp = entry->qp;
> @@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data,
> case DMA_TRANS_READ_FAILED:
> case DMA_TRANS_WRITE_FAILED:
> entry->errors++;
> + /* fall through */
> case DMA_TRANS_ABORTED:
> {
> void __iomem *offset =
> --
> 2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ntb: ntb_transport: Mark expected switch fall-throughs
2018-10-05 17:03 ` Allen Hubbe
@ 2018-10-31 20:39 ` Jon Mason
0 siblings, 0 replies; 3+ messages in thread
From: Jon Mason @ 2018-10-31 20:39 UTC (permalink / raw)
To: Allen Hubbe; +Cc: gustavo, dave.jiang, linux-ntb, linux-kernel
On Fri, Oct 05, 2018 at 01:03:01PM -0400, Allen Hubbe wrote:
> On Fri, Oct 5, 2018 at 3:12 AM Gustavo A. R. Silva
> <gustavo@embeddedor.com> wrote:
> > In preparation to enabling -Wimplicit-fallthrough, mark switch cases
> > where we are expecting to fall through.
> >
> > Addresses-Coverity-ID: 1373888 ("Missing break in switch")
> > Addresses-Coverity-ID: 1373889 ("Missing break in switch")
> > Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
>
> Acked-by: Allen Hubbe <allenbh@gmail.com>
Applied
Thanks,
Jon
>
> > ---
> > drivers/ntb/ntb_transport.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
> > index 9398959..c643b9c 100644
> > --- a/drivers/ntb/ntb_transport.c
> > +++ b/drivers/ntb/ntb_transport.c
> > @@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data,
> > case DMA_TRANS_READ_FAILED:
> > case DMA_TRANS_WRITE_FAILED:
> > entry->errors++;
> > + /* fall through */
> > case DMA_TRANS_ABORTED:
> > {
> > struct ntb_transport_qp *qp = entry->qp;
> > @@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data,
> > case DMA_TRANS_READ_FAILED:
> > case DMA_TRANS_WRITE_FAILED:
> > entry->errors++;
> > + /* fall through */
> > case DMA_TRANS_ABORTED:
> > {
> > void __iomem *offset =
> > --
> > 2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-31 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05 7:12 [PATCH] ntb: ntb_transport: Mark expected switch fall-throughs Gustavo A. R. Silva
2018-10-05 17:03 ` Allen Hubbe
2018-10-31 20:39 ` Jon Mason
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.