Skip to content

Commit 1a2ace5

Browse files
GustavoARSilvadavem330
authored andcommitted
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 <sgoutham@cavium.com> Cc: Robert Richter <rric@kernel.org> Cc: linux-arm-kernel@lists.infradead.org Cc: netdev@vger.kernel.org Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fb60bcc commit 1a2ace5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/cavium/thunder/nicvf_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,10 @@ static inline bool nicvf_xdp_rx(struct nicvf *nic, struct bpf_prog *prog,
565565
return true;
566566
default:
567567
bpf_warn_invalid_xdp_action(action);
568+
/* fall through */
568569
case XDP_ABORTED:
569570
trace_xdp_exception(nic->netdev, prog, action);
571+
/* fall through */
570572
case XDP_DROP:
571573
/* Check if it's a recycled page, if not
572574
* unmap the DMA mapping.

0 commit comments

Comments
 (0)