]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: fix implicit fallthrough warning
authorJohn Hurley <john.hurley@netronome.com>
Tue, 16 Apr 2019 14:04:23 +0000 (15:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Apr 2019 04:42:06 +0000 (21:42 -0700)
commit0a30e1aa3e0449f66ef2eb8ceae07c4122602289
treee1bf7a410a11e0cd589bf1bc6902e6214d5c7002
parent6baf9c8278662ca2da51dab63185cda6c4ced22d
nfp: flower: fix implicit fallthrough warning

The nfp_flower_copy_pre_actions function introduces a case statement with
an intentional fallthrough. However, this generates a warning if built
with the -Wimplicit-fallthrough flag.

Remove the warning by adding a fall through comment.

Fixes: 739b04dbb1f8 ("nfp: flower: generate merge flow rule")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/offload.c