diff options
| author | Gustavo A. R. Silva <[email protected]> | 2019-04-29 15:37:55 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-05-01 15:23:58 +0000 |
| commit | 4a46a7c35322dbbaeef1e2844c9cd41c99cefc66 (patch) | |
| tree | 0d5bb1e5ab2452aa9977f81d7ab2c78231ddc857 /net/ipv4/tcp_input.c | |
| parent | devlink: Change devlink health locking mechanism (diff) | |
| download | kernel-4a46a7c35322dbbaeef1e2844c9cd41c99cefc66.tar.gz kernel-4a46a7c35322dbbaeef1e2844c9cd41c99cefc66.zip | |
sfc: mcdi_port: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/net/ethernet/sfc/mcdi_port.c: In function ‘efx_mcdi_phy_decode_link’:
./include/linux/compiler.h:77:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
# define unlikely(x) __builtin_expect(!!(x), 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/bug.h:125:2: note: in expansion of macro ‘unlikely’
unlikely(__ret_warn_on); \
^~~~~~~~
drivers/net/ethernet/sfc/mcdi_port.c:344:3: note: in expansion of macro ‘WARN_ON’
WARN_ON(1);
^~~~~~~
drivers/net/ethernet/sfc/mcdi_port.c:345:2: note: here
case MC_CMD_FCNTL_OFF:
^~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Edward Cree <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
