net: thunderx: mark expected switch fall-throughs in nicvf_main()
Subsystems (3)
PATCH 1/1 net: thunderx: mark expected switch fall-throughs in nicvf_main()
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Cc Sunil Goutham <[email protected]>
Cc Robert Richter <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc netdev at vger.kernel.org
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/cavium/thunder/nicvf_main.c +2 -0
@@ -566,8 +566,10 @@ static inline bool nicvf_xdp_rx(struct nicvf *nic, struct bpf_prog *prog,return true;default :bpf_warn_invalid_xdp_action (action); +/* fall through */ case XDP_ABORTED :trace_xdp_exception (nic->netdev, prog, action); +/* fall through */ case XDP_DROP :/* Check if it's a recycled page, if not * unmap the DMA mapping.
Signature · 1 line
2.7.4
From: "Gustavo A. R. Silva" <[email protected]>
Date: Mon, 9 Oct 2017 11:44:53 -0500
Quoted 8 lines
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Cc Sunil Goutham <[email protected]>Cc Robert Richter <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc netdev at vger.kernel.orgSigned-off-by Gustavo A. R. Silva <[email protected]>
Applied.