From 61b329ec5c16ca47e09698e3e9b788adf3fed69a Mon Sep 17 00:00:00 2001 From: David Oladunjoye Date: Thu, 9 Jun 2022 11:46:45 -0700 Subject: [PATCH] qcacmn: hal: Replace fallthrough comment with attribute -Wimplicit-fallthrough is being enabled by default. Some compilers such as clang require the attribute instead of just a fallthrough comment. Change-Id: Id97d026b2d90a607974cc541d0301565af423f2f CRs-Fixed: 3218239 --- hal/wifi3.0/be/hal_be_api_mon.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hal/wifi3.0/be/hal_be_api_mon.h b/hal/wifi3.0/be/hal_be_api_mon.h index 767af2969e..f9f19076f7 100644 --- a/hal/wifi3.0/be/hal_be_api_mon.h +++ b/hal/wifi3.0/be/hal_be_api_mon.h @@ -1208,7 +1208,7 @@ hal_rx_parse_ru_allocation(struct hal_soc *hal_soc, void *tlv, ppdu_info->rx_status.eht_data[2] |= (ofdma_cmn_eb2->ru_allocation2_3 << QDF_MON_STATUS_EHT_RU_ALLOCATION2_3_SHIFT); - /* fallthrough */ + fallthrough; case HAL_EHT_BW_160: num_ru_allocation_known += 2; @@ -1218,14 +1218,14 @@ hal_rx_parse_ru_allocation(struct hal_soc *hal_soc, void *tlv, ppdu_info->rx_status.eht_data[2] |= (ofdma_cmn_eb2->ru_allocation2_1 << QDF_MON_STATUS_EHT_RU_ALLOCATION2_1_SHIFT); - /* fallthrough */ + fallthrough; case HAL_EHT_BW_80: num_ru_allocation_known += 1; ppdu_info->rx_status.eht_data[1] |= (ofdma_cmn_eb1->ru_allocation1_2 << QDF_MON_STATUS_EHT_RU_ALLOCATION1_2_SHIFT); - /* fallthrough */ + fallthrough; case HAL_EHT_BW_40: case HAL_EHT_BW_20: num_ru_allocation_known += 1;