From e1b6635d62ca8395c5267595a71d2d839643b76a Mon Sep 17 00:00:00 2001 From: Zhipeng Wang Date: Wed, 11 Jan 2023 10:17:51 +0000 Subject: [PATCH] MA-20998-4 mxm_wifiex: Fix unannotated fall-through between switch labels build error Fix build error like below: mxm_wifiex/wlan_src/mlinux/moal_priv.c:289:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] case 1: /* Check type range */ ^ Change-Id: If9a5ee43554b57f659c32ca29ee0813364ddf94c Signed-off-by: Zhipeng Wang --- mxm_wifiex/wlan_src/mlinux/moal_priv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mxm_wifiex/wlan_src/mlinux/moal_priv.c b/mxm_wifiex/wlan_src/mlinux/moal_priv.c index fdab5cd..56f0387 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_priv.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_priv.c @@ -286,6 +286,7 @@ static int woal_get_signal(moal_private *priv, struct iwreq *wrq) goto done; } /* Fall through */ + fallthrough; case 1: /* Check type range */ if (in_data[0] < 1 || in_data[0] > 3) { ret = -EINVAL; @@ -5137,18 +5138,23 @@ static int woal_do_sdio_mpa_ctrl(moal_private *priv, struct iwreq *wrq) case 6: misc->param.mpa_ctrl.rx_max_ports = data[5]; /* fall through */ + fallthrough; case 5: misc->param.mpa_ctrl.tx_max_ports = data[4]; /* fall through */ + fallthrough; case 4: misc->param.mpa_ctrl.rx_buf_size = data[3]; /* fall through */ + fallthrough; case 3: misc->param.mpa_ctrl.tx_buf_size = data[2]; /* fall through */ + fallthrough; case 2: misc->param.mpa_ctrl.rx_enable = data[1]; /* fall through */ + fallthrough; case 1: /* Set cmd */ req->action = MLAN_ACT_SET;