]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 5 Mar 2021 09:00:00 +0000 (03:00 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 23 Mar 2021 18:34:02 +0000 (11:34 -0700)
commite91b40d3c3ef55da9f9ed67aaf7f4fb786e2af81
treed52d6a5859dd622a7d18fc437d1350091b3d851c
parent416a5f5abbbf9b5de22d91f01e3ad5bf25a533db
ixgbe: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of just
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c