[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190729.151328.1578011130589820578.davem@davemloft.net>
Date: Mon, 29 Jul 2019 15:13:28 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: gustavo@...eddedor.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
keescook@...omium.org
Subject: Re: [PATCH] net: smc911x: Mark expected switch fall-through
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Date: Mon, 29 Jul 2019 17:10:16 -0500
> Mark switch cases where we are expecting to fall through.
>
> This patch fixes the following warning (Building: arm):
>
> drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_phy_detect’:
> drivers/net/ethernet/smsc/smc911x.c:677:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
> if (cfg & HW_CFG_EXT_PHY_DET_) {
> ^
> drivers/net/ethernet/smsc/smc911x.c:715:3: note: here
> default:
> ^~~~~~~
>
> Signed-off-by: Gustavo A. R. Silva <gustavo@...eddedor.com>
Applied.
Powered by blists - more mailing lists