From: Gustavo A. R. Silva Date: Tue, 7 Aug 2018 23:27:36 +0000 (-0500) Subject: qede: qede_fp: Mark expected switch fall-through X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~4765^2~94^2~6 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b84ad65a75f36abfe20b3c9386e8377982ca8eaa;p=mirror_ubuntu-focal-kernel.git qede: qede_fp: Mark expected switch fall-through In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1384501 ("Missing break in switch") Addresses-Coverity-ID: 1398869 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qede/qede_fp.c b/drivers/net/ethernet/qlogic/qede/qede_fp.c index 6c702399b801..8c9e95ba9917 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_fp.c +++ b/drivers/net/ethernet/qlogic/qede/qede_fp.c @@ -1119,8 +1119,10 @@ static bool qede_rx_xdp(struct qede_dev *edev, default: bpf_warn_invalid_xdp_action(act); + /* Fall through */ case XDP_ABORTED: trace_xdp_exception(edev->ndev, prog, act); + /* Fall through */ case XDP_DROP: qede_recycle_rx_bd_ring(rxq, cqe->bd_num); }