[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190729.111244.1579095115694062432.davem@davemloft.net>
Date: Mon, 29 Jul 2019 11:12:44 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: gustavo@...eddedor.com
Cc: kou.ishizaki@...hiba.co.jp, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, sfr@...b.auug.org.au,
keescook@...omium.org
Subject: Re: [PATCH] net: spider_net: Mark expected switch fall-through
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Date: Sun, 28 Jul 2019 19:32:51 -0500
> Mark switch cases where we are expecting to fall through.
>
> This patch fixes the following warning:
>
> drivers/net/ethernet/toshiba/spider_net.c: In function 'spider_net_release_tx_chain':
> drivers/net/ethernet/toshiba/spider_net.c:783:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
> if (!brutal) {
> ^
> drivers/net/ethernet/toshiba/spider_net.c:792:3: note: here
> case SPIDER_NET_DESCR_RESPONSE_ERROR:
> ^~~~
>
> Notice that, in this particular case, the code comment is
> modified in accordance with what GCC is expecting to find.
>
> Reported-by: Stephen Rothwell <sfr@...b.auug.org.au>
> Signed-off-by: Gustavo A. R. Silva <gustavo@...eddedor.com>
Applied.
Powered by blists - more mailing lists