From a7f96835dcd015c29874a7c07ecbc8046e39d9ae Mon Sep 17 00:00:00 2001 From: Zhipeng Wang Date: Wed, 11 Jan 2023 10:49:20 +0000 Subject: [PATCH] MA-20998-6 mxm_wifiex: Fix unannotated fall-through between switch labels build error Fix below build error: mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1385:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] case PCIE_INT_MODE_MSI: ^ mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1402:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] case PCIE_INT_MODE_LEGACY: ^ Change-Id: I1322a4f2f128b39b4ac7e01ede5c0145905f2f8f Signed-off-by: Zhipeng Wang --- mxm_wifiex/wlan_src/mlinux/moal_pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mxm_wifiex/wlan_src/mlinux/moal_pcie.c b/mxm_wifiex/wlan_src/mlinux/moal_pcie.c index 0a1d7eb..e16d490 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_pcie.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_pcie.c @@ -1380,7 +1380,7 @@ static mlan_status woal_pcie_register_dev(moal_handle *handle) break; } // follow through - + fallthrough; /* fall through */ case PCIE_INT_MODE_MSI: pcie_int_mode = PCIE_INT_MODE_MSI; @@ -1397,7 +1397,7 @@ static mlan_status woal_pcie_register_dev(moal_handle *handle) } } // follow through - + fallthrough; /* fall through */ case PCIE_INT_MODE_LEGACY: pcie_int_mode = PCIE_INT_MODE_LEGACY;