qcacmn: dp: 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: I443da8d7f5e1771dceb3386c4458b0da6a5e9476 CRs-Fixed: 3218236
此提交包含在:
@@ -719,7 +719,7 @@ _dp_srng_test_and_update_nf_params(struct dp_soc *soc,
|
|||||||
switch (near_full_level) {
|
switch (near_full_level) {
|
||||||
case DP_SRNG_THRESH_CRITICAL:
|
case DP_SRNG_THRESH_CRITICAL:
|
||||||
/* Currently not doing anything special here */
|
/* Currently not doing anything special here */
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case DP_SRNG_THRESH_NEAR_FULL:
|
case DP_SRNG_THRESH_NEAR_FULL:
|
||||||
ring_near_full = 1;
|
ring_near_full = 1;
|
||||||
*max_reap_limit *= DP_SRNG_PER_LOOP_NF_REAP_MULTIPLIER;
|
*max_reap_limit *= DP_SRNG_PER_LOOP_NF_REAP_MULTIPLIER;
|
||||||
|
@@ -1496,7 +1496,7 @@ static QDF_STATUS dp_rx_defrag(struct dp_txrx_peer *txrx_peer, unsigned int tid,
|
|||||||
switch (txrx_peer->security[index].sec_type) {
|
switch (txrx_peer->security[index].sec_type) {
|
||||||
case cdp_sec_type_tkip:
|
case cdp_sec_type_tkip:
|
||||||
tkip_demic = 1;
|
tkip_demic = 1;
|
||||||
|
fallthrough;
|
||||||
case cdp_sec_type_tkip_nomic:
|
case cdp_sec_type_tkip_nomic:
|
||||||
while (cur) {
|
while (cur) {
|
||||||
tmp_next = qdf_nbuf_next(cur);
|
tmp_next = qdf_nbuf_next(cur);
|
||||||
|
@@ -712,7 +712,6 @@ _dp_rx_bar_frame_handle(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
|||||||
if (err_status == HAL_REO_ERROR_DETECTED) {
|
if (err_status == HAL_REO_ERROR_DETECTED) {
|
||||||
switch (error_code) {
|
switch (error_code) {
|
||||||
case HAL_REO_ERR_BAR_FRAME_2K_JUMP:
|
case HAL_REO_ERR_BAR_FRAME_2K_JUMP:
|
||||||
/* fallthrough */
|
|
||||||
case HAL_REO_ERR_BAR_FRAME_OOR:
|
case HAL_REO_ERR_BAR_FRAME_OOR:
|
||||||
dp_rx_err_handle_bar(soc, peer, nbuf);
|
dp_rx_err_handle_bar(soc, peer, nbuf);
|
||||||
DP_STATS_INC(soc, rx.err.reo_error[error_code], 1);
|
DP_STATS_INC(soc, rx.err.reo_error[error_code], 1);
|
||||||
|
@@ -264,19 +264,19 @@ dp_tx_adjust_flow_pool_state(struct dp_soc *soc,
|
|||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
WLAN_NETIF_PRIORITY_QUEUE_OFF,
|
WLAN_NETIF_PRIORITY_QUEUE_OFF,
|
||||||
WLAN_DATA_FLOW_CTRL_PRI);
|
WLAN_DATA_FLOW_CTRL_PRI);
|
||||||
/* fallthrough */
|
fallthrough;
|
||||||
|
|
||||||
case FLOW_POOL_VO_PAUSED:
|
case FLOW_POOL_VO_PAUSED:
|
||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
WLAN_NETIF_VO_QUEUE_OFF,
|
WLAN_NETIF_VO_QUEUE_OFF,
|
||||||
WLAN_DATA_FLOW_CTRL_VO);
|
WLAN_DATA_FLOW_CTRL_VO);
|
||||||
/* fallthrough */
|
fallthrough;
|
||||||
|
|
||||||
case FLOW_POOL_VI_PAUSED:
|
case FLOW_POOL_VI_PAUSED:
|
||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
WLAN_NETIF_VI_QUEUE_OFF,
|
WLAN_NETIF_VI_QUEUE_OFF,
|
||||||
WLAN_DATA_FLOW_CTRL_VI);
|
WLAN_DATA_FLOW_CTRL_VI);
|
||||||
/* fallthrough */
|
fallthrough;
|
||||||
|
|
||||||
case FLOW_POOL_BE_BK_PAUSED:
|
case FLOW_POOL_BE_BK_PAUSED:
|
||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
|
@@ -136,25 +136,25 @@ dp_tx_flow_ctrl_reset_subqueues(struct dp_soc *soc,
|
|||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
WLAN_NETIF_PRIORITY_QUEUE_ON,
|
WLAN_NETIF_PRIORITY_QUEUE_ON,
|
||||||
WLAN_DATA_FLOW_CTRL_PRI);
|
WLAN_DATA_FLOW_CTRL_PRI);
|
||||||
/* fallthrough */
|
fallthrough;
|
||||||
|
|
||||||
case FLOW_POOL_VO_PAUSED:
|
case FLOW_POOL_VO_PAUSED:
|
||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
WLAN_NETIF_VO_QUEUE_ON,
|
WLAN_NETIF_VO_QUEUE_ON,
|
||||||
WLAN_DATA_FLOW_CTRL_VO);
|
WLAN_DATA_FLOW_CTRL_VO);
|
||||||
/* fallthrough */
|
fallthrough;
|
||||||
|
|
||||||
case FLOW_POOL_VI_PAUSED:
|
case FLOW_POOL_VI_PAUSED:
|
||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
WLAN_NETIF_VI_QUEUE_ON,
|
WLAN_NETIF_VI_QUEUE_ON,
|
||||||
WLAN_DATA_FLOW_CTRL_VI);
|
WLAN_DATA_FLOW_CTRL_VI);
|
||||||
/* fallthrough */
|
fallthrough;
|
||||||
|
|
||||||
case FLOW_POOL_BE_BK_PAUSED:
|
case FLOW_POOL_BE_BK_PAUSED:
|
||||||
soc->pause_cb(pool->flow_pool_id,
|
soc->pause_cb(pool->flow_pool_id,
|
||||||
WLAN_NETIF_BE_BK_QUEUE_ON,
|
WLAN_NETIF_BE_BK_QUEUE_ON,
|
||||||
WLAN_DATA_FLOW_CTRL_BE_BK);
|
WLAN_DATA_FLOW_CTRL_BE_BK);
|
||||||
/* fallthrough */
|
fallthrough;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
新增問題並參考
封鎖使用者