Blame SOURCES/0010-netdrv-bnx2x-Mark-expected-switch-fall-thoughs.patch

f95c89
From ee4e5bb0fce41914bc6f43193cdd5b509112c6f3 Mon Sep 17 00:00:00 2001
f95c89
From: Jonathan Toppins <jtoppins@redhat.com>
f95c89
Date: Wed, 2 Oct 2019 18:22:24 -0400
f95c89
Subject: [PATCH 10/96] [netdrv] bnx2x: Mark expected switch fall-thoughs
f95c89
f95c89
Message-id: <3f7032881cc02b243f65b2143256790bc0038133.1570027456.git.jtoppins@redhat.com>
f95c89
Patchwork-id: 276428
f95c89
O-Subject: [RHEL-8.2 PATCH 02/78] bnx2x: Mark expected switch fall-thoughs
f95c89
Bugzilla: 1724766
f95c89
RH-Acked-by: John Linville <linville@redhat.com>
f95c89
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
f95c89
f95c89
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
f95c89
where we are expecting to fall through.
f95c89
f95c89
Addresses-Coverity-ID: 114878 ("Missing break in switch")
f95c89
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
f95c89
Signed-off-by: David S. Miller <davem@davemloft.net>
f95c89
(cherry picked from commit bc171e87a7e29a41b119fdfccd378f7179b39c23)
f95c89
Bugzilla: 1724766
f95c89
Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=23809532
f95c89
Tested: build, boot, basic ping
f95c89
Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
f95c89
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
f95c89
---
f95c89
 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +-
f95c89
 1 file changed, 1 insertion(+), 1 deletion(-)
f95c89
f95c89
Index: src/drivers/net/ethernet/broadcom/bnxt/bnxt.c
f95c89
===================================================================
f95c89
--- src.orig/drivers/net/ethernet/broadcom/bnxt/bnxt.c	2020-02-06 16:23:11.904548088 +0100
f95c89
+++ src/drivers/net/ethernet/broadcom/bnxt/bnxt.c	2020-02-06 16:23:12.026546968 +0100
f95c89
@@ -1793,8 +1793,8 @@
f95c89
 					    speed);
f95c89
 		}
f95c89
 		set_bit(BNXT_LINK_SPEED_CHNG_SP_EVENT, &bp->sp_event);
f95c89
-		/* fall through */
f95c89
 	}
f95c89
+	/* fall through */
f95c89
 	case ASYNC_EVENT_CMPL_EVENT_ID_LINK_STATUS_CHANGE:
f95c89
 		set_bit(BNXT_LINK_CHNG_SP_EVENT, &bp->sp_event);
f95c89
 		break;