Commit 6f24b159 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Jason Gunthorpe

IB/hfi1: Use fallthrough pseudo-keyword

Replace the existing /* fall through */ comments and its variants with the
new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.

[1] https://www.kernel.org/doc/html/v5.7-rc7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Link: https://lore.kernel.org/r/20200721133455.GA14363@embeddedorSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 9b8d8469
...@@ -1868,11 +1868,8 @@ int parse_platform_config(struct hfi1_devdata *dd) ...@@ -1868,11 +1868,8 @@ int parse_platform_config(struct hfi1_devdata *dd)
2; 2;
break; break;
case PLATFORM_CONFIG_RX_PRESET_TABLE: case PLATFORM_CONFIG_RX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_TX_PRESET_TABLE: case PLATFORM_CONFIG_TX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_QSFP_ATTEN_TABLE: case PLATFORM_CONFIG_QSFP_ATTEN_TABLE:
/* fall through */
case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE: case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE:
pcfgcache->config_tables[table_type].num_table = pcfgcache->config_tables[table_type].num_table =
table_length_dwords; table_length_dwords;
...@@ -1890,15 +1887,10 @@ int parse_platform_config(struct hfi1_devdata *dd) ...@@ -1890,15 +1887,10 @@ int parse_platform_config(struct hfi1_devdata *dd)
/* metadata table */ /* metadata table */
switch (table_type) { switch (table_type) {
case PLATFORM_CONFIG_SYSTEM_TABLE: case PLATFORM_CONFIG_SYSTEM_TABLE:
/* fall through */
case PLATFORM_CONFIG_PORT_TABLE: case PLATFORM_CONFIG_PORT_TABLE:
/* fall through */
case PLATFORM_CONFIG_RX_PRESET_TABLE: case PLATFORM_CONFIG_RX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_TX_PRESET_TABLE: case PLATFORM_CONFIG_TX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_QSFP_ATTEN_TABLE: case PLATFORM_CONFIG_QSFP_ATTEN_TABLE:
/* fall through */
case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE: case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE:
break; break;
default: default:
...@@ -2027,15 +2019,10 @@ static int get_platform_fw_field_metadata(struct hfi1_devdata *dd, int table, ...@@ -2027,15 +2019,10 @@ static int get_platform_fw_field_metadata(struct hfi1_devdata *dd, int table,
switch (table) { switch (table) {
case PLATFORM_CONFIG_SYSTEM_TABLE: case PLATFORM_CONFIG_SYSTEM_TABLE:
/* fall through */
case PLATFORM_CONFIG_PORT_TABLE: case PLATFORM_CONFIG_PORT_TABLE:
/* fall through */
case PLATFORM_CONFIG_RX_PRESET_TABLE: case PLATFORM_CONFIG_RX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_TX_PRESET_TABLE: case PLATFORM_CONFIG_TX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_QSFP_ATTEN_TABLE: case PLATFORM_CONFIG_QSFP_ATTEN_TABLE:
/* fall through */
case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE: case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE:
if (field && field < platform_config_table_limits[table]) if (field && field < platform_config_table_limits[table])
src_ptr = src_ptr =
...@@ -2138,11 +2125,8 @@ int get_platform_config_field(struct hfi1_devdata *dd, ...@@ -2138,11 +2125,8 @@ int get_platform_config_field(struct hfi1_devdata *dd,
pcfgcache->config_tables[table_type].table; pcfgcache->config_tables[table_type].table;
break; break;
case PLATFORM_CONFIG_RX_PRESET_TABLE: case PLATFORM_CONFIG_RX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_TX_PRESET_TABLE: case PLATFORM_CONFIG_TX_PRESET_TABLE:
/* fall through */
case PLATFORM_CONFIG_QSFP_ATTEN_TABLE: case PLATFORM_CONFIG_QSFP_ATTEN_TABLE:
/* fall through */
case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE: case PLATFORM_CONFIG_VARIABLE_SETTINGS_TABLE:
src_ptr = pcfgcache->config_tables[table_type].table; src_ptr = pcfgcache->config_tables[table_type].table;
......
...@@ -721,7 +721,7 @@ static int check_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad, ...@@ -721,7 +721,7 @@ static int check_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad,
/* Bad mkey not a violation below level 2 */ /* Bad mkey not a violation below level 2 */
if (ibp->rvp.mkeyprot < 2) if (ibp->rvp.mkeyprot < 2)
break; break;
/* fall through */ fallthrough;
case IB_MGMT_METHOD_SET: case IB_MGMT_METHOD_SET:
case IB_MGMT_METHOD_TRAP_REPRESS: case IB_MGMT_METHOD_TRAP_REPRESS:
if (ibp->rvp.mkey_violations != 0xFFFF) if (ibp->rvp.mkey_violations != 0xFFFF)
...@@ -1272,7 +1272,7 @@ static int set_port_states(struct hfi1_pportdata *ppd, struct opa_smp *smp, ...@@ -1272,7 +1272,7 @@ static int set_port_states(struct hfi1_pportdata *ppd, struct opa_smp *smp,
case IB_PORT_NOP: case IB_PORT_NOP:
if (phys_state == IB_PORTPHYSSTATE_NOP) if (phys_state == IB_PORTPHYSSTATE_NOP)
break; break;
/* FALLTHROUGH */ fallthrough;
case IB_PORT_DOWN: case IB_PORT_DOWN:
if (phys_state == IB_PORTPHYSSTATE_NOP) { if (phys_state == IB_PORTPHYSSTATE_NOP) {
link_state = HLS_DN_DOWNDEF; link_state = HLS_DN_DOWNDEF;
...@@ -2300,7 +2300,6 @@ static int __subn_set_opa_vl_arb(struct opa_smp *smp, u32 am, u8 *data, ...@@ -2300,7 +2300,6 @@ static int __subn_set_opa_vl_arb(struct opa_smp *smp, u32 am, u8 *data,
* can be changed from the default values * can be changed from the default values
*/ */
case OPA_VLARB_PREEMPT_ELEMENTS: case OPA_VLARB_PREEMPT_ELEMENTS:
/* FALLTHROUGH */
case OPA_VLARB_PREEMPT_MATRIX: case OPA_VLARB_PREEMPT_MATRIX:
smp->status |= IB_SMP_UNSUP_METH_ATTR; smp->status |= IB_SMP_UNSUP_METH_ATTR;
break; break;
...@@ -4170,7 +4169,7 @@ static int subn_get_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, ...@@ -4170,7 +4169,7 @@ static int subn_get_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am,
return IB_MAD_RESULT_SUCCESS | IB_MAD_RESULT_CONSUMED; return IB_MAD_RESULT_SUCCESS | IB_MAD_RESULT_CONSUMED;
if (ibp->rvp.port_cap_flags & IB_PORT_SM) if (ibp->rvp.port_cap_flags & IB_PORT_SM)
return IB_MAD_RESULT_SUCCESS; return IB_MAD_RESULT_SUCCESS;
/* FALLTHROUGH */ fallthrough;
default: default:
smp->status |= IB_SMP_UNSUP_METH_ATTR; smp->status |= IB_SMP_UNSUP_METH_ATTR;
ret = reply((struct ib_mad_hdr *)smp); ret = reply((struct ib_mad_hdr *)smp);
...@@ -4240,7 +4239,7 @@ static int subn_set_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, ...@@ -4240,7 +4239,7 @@ static int subn_set_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am,
return IB_MAD_RESULT_SUCCESS | IB_MAD_RESULT_CONSUMED; return IB_MAD_RESULT_SUCCESS | IB_MAD_RESULT_CONSUMED;
if (ibp->rvp.port_cap_flags & IB_PORT_SM) if (ibp->rvp.port_cap_flags & IB_PORT_SM)
return IB_MAD_RESULT_SUCCESS; return IB_MAD_RESULT_SUCCESS;
/* FALLTHROUGH */ fallthrough;
default: default:
smp->status |= IB_SMP_UNSUP_METH_ATTR; smp->status |= IB_SMP_UNSUP_METH_ATTR;
ret = reply((struct ib_mad_hdr *)smp); ret = reply((struct ib_mad_hdr *)smp);
......
...@@ -86,7 +86,7 @@ void pio_send_control(struct hfi1_devdata *dd, int op) ...@@ -86,7 +86,7 @@ void pio_send_control(struct hfi1_devdata *dd, int op)
switch (op) { switch (op) {
case PSC_GLOBAL_ENABLE: case PSC_GLOBAL_ENABLE:
reg |= SEND_CTRL_SEND_ENABLE_SMASK; reg |= SEND_CTRL_SEND_ENABLE_SMASK;
/* Fall through */ fallthrough;
case PSC_DATA_VL_ENABLE: case PSC_DATA_VL_ENABLE:
mask = 0; mask = 0;
for (i = 0; i < ARRAY_SIZE(dd->vld); i++) for (i = 0; i < ARRAY_SIZE(dd->vld); i++)
......
...@@ -191,22 +191,22 @@ static inline void jcopy(u8 *dest, const u8 *src, u32 n) ...@@ -191,22 +191,22 @@ static inline void jcopy(u8 *dest, const u8 *src, u32 n)
switch (n) { switch (n) {
case 7: case 7:
*dest++ = *src++; *dest++ = *src++;
/* fall through */ fallthrough;
case 6: case 6:
*dest++ = *src++; *dest++ = *src++;
/* fall through */ fallthrough;
case 5: case 5:
*dest++ = *src++; *dest++ = *src++;
/* fall through */ fallthrough;
case 4: case 4:
*dest++ = *src++; *dest++ = *src++;
/* fall through */ fallthrough;
case 3: case 3:
*dest++ = *src++; *dest++ = *src++;
/* fall through */ fallthrough;
case 2: case 2:
*dest++ = *src++; *dest++ = *src++;
/* fall through */ fallthrough;
case 1: case 1:
*dest++ = *src++; *dest++ = *src++;
/* fall through */ /* fall through */
......
...@@ -668,8 +668,8 @@ static u8 aoc_low_power_setting(struct hfi1_pportdata *ppd) ...@@ -668,8 +668,8 @@ static u8 aoc_low_power_setting(struct hfi1_pportdata *ppd)
/* active optical cables only */ /* active optical cables only */
switch ((cache[QSFP_MOD_TECH_OFFS] & 0xF0) >> 4) { switch ((cache[QSFP_MOD_TECH_OFFS] & 0xF0) >> 4) {
case 0x0 ... 0x9: /* fallthrough */ case 0x0 ... 0x9: fallthrough;
case 0xC: /* fallthrough */ case 0xC: fallthrough;
case 0xE: case 0xE:
/* active AOC */ /* active AOC */
power_class = get_qsfp_power_class(cache[QSFP_MOD_PWR_OFFS]); power_class = get_qsfp_power_class(cache[QSFP_MOD_PWR_OFFS]);
...@@ -899,8 +899,8 @@ static int tune_qsfp(struct hfi1_pportdata *ppd, ...@@ -899,8 +899,8 @@ static int tune_qsfp(struct hfi1_pportdata *ppd,
*ptr_tuning_method = OPA_PASSIVE_TUNING; *ptr_tuning_method = OPA_PASSIVE_TUNING;
break; break;
case 0x0 ... 0x9: /* fallthrough */ case 0x0 ... 0x9: fallthrough;
case 0xC: /* fallthrough */ case 0xC: fallthrough;
case 0xE: case 0xE:
ret = tune_active_qsfp(ppd, ptr_tx_preset, ptr_rx_preset, ret = tune_active_qsfp(ppd, ptr_tx_preset, ptr_rx_preset,
ptr_total_atten); ptr_total_atten);
...@@ -909,7 +909,7 @@ static int tune_qsfp(struct hfi1_pportdata *ppd, ...@@ -909,7 +909,7 @@ static int tune_qsfp(struct hfi1_pportdata *ppd,
*ptr_tuning_method = OPA_ACTIVE_TUNING; *ptr_tuning_method = OPA_ACTIVE_TUNING;
break; break;
case 0xD: /* fallthrough */ case 0xD: fallthrough;
case 0xF: case 0xF:
default: default:
dd_dev_warn(ppd->dd, "%s: Unknown/unsupported cable\n", dd_dev_warn(ppd->dd, "%s: Unknown/unsupported cable\n",
......
...@@ -312,7 +312,7 @@ int hfi1_setup_wqe(struct rvt_qp *qp, struct rvt_swqe *wqe, bool *call_send) ...@@ -312,7 +312,7 @@ int hfi1_setup_wqe(struct rvt_qp *qp, struct rvt_swqe *wqe, bool *call_send)
switch (qp->ibqp.qp_type) { switch (qp->ibqp.qp_type) {
case IB_QPT_RC: case IB_QPT_RC:
hfi1_setup_tid_rdma_wqe(qp, wqe); hfi1_setup_tid_rdma_wqe(qp, wqe);
/* fall through */ fallthrough;
case IB_QPT_UC: case IB_QPT_UC:
if (wqe->length > 0x80000000U) if (wqe->length > 0x80000000U)
return -EINVAL; return -EINVAL;
......
...@@ -231,7 +231,7 @@ static int i2c_bus_write(struct hfi1_devdata *dd, struct hfi1_i2c_bus *i2c, ...@@ -231,7 +231,7 @@ static int i2c_bus_write(struct hfi1_devdata *dd, struct hfi1_i2c_bus *i2c,
break; break;
case 2: case 2:
offset_bytes[1] = (offset >> 8) & 0xff; offset_bytes[1] = (offset >> 8) & 0xff;
/* fall through */ fallthrough;
case 1: case 1:
num_msgs = 2; num_msgs = 2;
offset_bytes[0] = offset & 0xff; offset_bytes[0] = offset & 0xff;
...@@ -279,7 +279,7 @@ static int i2c_bus_read(struct hfi1_devdata *dd, struct hfi1_i2c_bus *bus, ...@@ -279,7 +279,7 @@ static int i2c_bus_read(struct hfi1_devdata *dd, struct hfi1_i2c_bus *bus,
break; break;
case 2: case 2:
offset_bytes[1] = (offset >> 8) & 0xff; offset_bytes[1] = (offset >> 8) & 0xff;
/* fall through */ fallthrough;
case 1: case 1:
num_msgs = 2; num_msgs = 2;
offset_bytes[0] = offset & 0xff; offset_bytes[0] = offset & 0xff;
......
...@@ -141,7 +141,7 @@ static int make_rc_ack(struct hfi1_ibdev *dev, struct rvt_qp *qp, ...@@ -141,7 +141,7 @@ static int make_rc_ack(struct hfi1_ibdev *dev, struct rvt_qp *qp,
case OP(RDMA_READ_RESPONSE_ONLY): case OP(RDMA_READ_RESPONSE_ONLY):
e = &qp->s_ack_queue[qp->s_tail_ack_queue]; e = &qp->s_ack_queue[qp->s_tail_ack_queue];
release_rdma_sge_mr(e); release_rdma_sge_mr(e);
/* FALLTHROUGH */ fallthrough;
case OP(ATOMIC_ACKNOWLEDGE): case OP(ATOMIC_ACKNOWLEDGE):
/* /*
* We can increment the tail pointer now that the last * We can increment the tail pointer now that the last
...@@ -160,7 +160,7 @@ static int make_rc_ack(struct hfi1_ibdev *dev, struct rvt_qp *qp, ...@@ -160,7 +160,7 @@ static int make_rc_ack(struct hfi1_ibdev *dev, struct rvt_qp *qp,
qp->s_acked_ack_queue = next; qp->s_acked_ack_queue = next;
qp->s_tail_ack_queue = next; qp->s_tail_ack_queue = next;
trace_hfi1_rsp_make_rc_ack(qp, e->psn); trace_hfi1_rsp_make_rc_ack(qp, e->psn);
/* FALLTHROUGH */ fallthrough;
case OP(SEND_ONLY): case OP(SEND_ONLY):
case OP(ACKNOWLEDGE): case OP(ACKNOWLEDGE):
/* Check for no next entry in the queue. */ /* Check for no next entry in the queue. */
...@@ -267,7 +267,7 @@ static int make_rc_ack(struct hfi1_ibdev *dev, struct rvt_qp *qp, ...@@ -267,7 +267,7 @@ static int make_rc_ack(struct hfi1_ibdev *dev, struct rvt_qp *qp,
case OP(RDMA_READ_RESPONSE_FIRST): case OP(RDMA_READ_RESPONSE_FIRST):
qp->s_ack_state = OP(RDMA_READ_RESPONSE_MIDDLE); qp->s_ack_state = OP(RDMA_READ_RESPONSE_MIDDLE);
/* FALLTHROUGH */ fallthrough;
case OP(RDMA_READ_RESPONSE_MIDDLE): case OP(RDMA_READ_RESPONSE_MIDDLE):
ps->s_txreq->ss = &qp->s_ack_rdma_sge; ps->s_txreq->ss = &qp->s_ack_rdma_sge;
ps->s_txreq->mr = qp->s_ack_rdma_sge.sge.mr; ps->s_txreq->mr = qp->s_ack_rdma_sge.sge.mr;
...@@ -881,8 +881,7 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps) ...@@ -881,8 +881,7 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
goto bail; goto bail;
} }
qp->s_num_rd_atomic++; qp->s_num_rd_atomic++;
fallthrough;
/* FALLTHROUGH */
case IB_WR_OPFN: case IB_WR_OPFN:
if (newreq && !(qp->s_flags & RVT_S_UNLIMITED_CREDIT)) if (newreq && !(qp->s_flags & RVT_S_UNLIMITED_CREDIT))
qp->s_lsn++; qp->s_lsn++;
...@@ -946,10 +945,10 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps) ...@@ -946,10 +945,10 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
* See restart_rc(). * See restart_rc().
*/ */
qp->s_len = restart_sge(&qp->s_sge, wqe, qp->s_psn, pmtu); qp->s_len = restart_sge(&qp->s_sge, wqe, qp->s_psn, pmtu);
/* FALLTHROUGH */ fallthrough;
case OP(SEND_FIRST): case OP(SEND_FIRST):
qp->s_state = OP(SEND_MIDDLE); qp->s_state = OP(SEND_MIDDLE);
/* FALLTHROUGH */ fallthrough;
case OP(SEND_MIDDLE): case OP(SEND_MIDDLE):
bth2 = mask_psn(qp->s_psn++); bth2 = mask_psn(qp->s_psn++);
ss = &qp->s_sge; ss = &qp->s_sge;
...@@ -991,10 +990,10 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps) ...@@ -991,10 +990,10 @@ int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
* See restart_rc(). * See restart_rc().
*/ */
qp->s_len = restart_sge(&qp->s_sge, wqe, qp->s_psn, pmtu); qp->s_len = restart_sge(&qp->s_sge, wqe, qp->s_psn, pmtu);
/* FALLTHROUGH */ fallthrough;
case OP(RDMA_WRITE_FIRST): case OP(RDMA_WRITE_FIRST):
qp->s_state = OP(RDMA_WRITE_MIDDLE); qp->s_state = OP(RDMA_WRITE_MIDDLE);
/* FALLTHROUGH */ fallthrough;
case OP(RDMA_WRITE_MIDDLE): case OP(RDMA_WRITE_MIDDLE):
bth2 = mask_psn(qp->s_psn++); bth2 = mask_psn(qp->s_psn++);
ss = &qp->s_sge; ss = &qp->s_sge;
...@@ -2901,7 +2900,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet) ...@@ -2901,7 +2900,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet)
if (!ret) if (!ret)
goto rnr_nak; goto rnr_nak;
qp->r_rcv_len = 0; qp->r_rcv_len = 0;
/* FALLTHROUGH */ fallthrough;
case OP(SEND_MIDDLE): case OP(SEND_MIDDLE):
case OP(RDMA_WRITE_MIDDLE): case OP(RDMA_WRITE_MIDDLE):
send_middle: send_middle:
...@@ -2941,7 +2940,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet) ...@@ -2941,7 +2940,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet)
goto no_immediate_data; goto no_immediate_data;
if (opcode == OP(SEND_ONLY_WITH_INVALIDATE)) if (opcode == OP(SEND_ONLY_WITH_INVALIDATE))
goto send_last_inv; goto send_last_inv;
/* FALLTHROUGH -- for SEND_ONLY_WITH_IMMEDIATE */ fallthrough; /* for SEND_ONLY_WITH_IMMEDIATE */
case OP(SEND_LAST_WITH_IMMEDIATE): case OP(SEND_LAST_WITH_IMMEDIATE):
send_last_imm: send_last_imm:
wc.ex.imm_data = ohdr->u.imm_data; wc.ex.imm_data = ohdr->u.imm_data;
...@@ -2957,7 +2956,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet) ...@@ -2957,7 +2956,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet)
goto send_last; goto send_last;
case OP(RDMA_WRITE_LAST): case OP(RDMA_WRITE_LAST):
copy_last = rvt_is_user_qp(qp); copy_last = rvt_is_user_qp(qp);
/* fall through */ fallthrough;
case OP(SEND_LAST): case OP(SEND_LAST):
no_immediate_data: no_immediate_data:
wc.wc_flags = 0; wc.wc_flags = 0;
...@@ -3010,7 +3009,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet) ...@@ -3010,7 +3009,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet)
case OP(RDMA_WRITE_ONLY): case OP(RDMA_WRITE_ONLY):
copy_last = rvt_is_user_qp(qp); copy_last = rvt_is_user_qp(qp);
/* fall through */ fallthrough;
case OP(RDMA_WRITE_FIRST): case OP(RDMA_WRITE_FIRST):
case OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE): case OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE):
if (unlikely(!(qp->qp_access_flags & IB_ACCESS_REMOTE_WRITE))) if (unlikely(!(qp->qp_access_flags & IB_ACCESS_REMOTE_WRITE)))
......
...@@ -2584,7 +2584,7 @@ static void __sdma_process_event(struct sdma_engine *sde, ...@@ -2584,7 +2584,7 @@ static void __sdma_process_event(struct sdma_engine *sde,
* 7220, e.g. * 7220, e.g.
*/ */
ss->go_s99_running = 1; ss->go_s99_running = 1;
/* fall through -- and start dma engine */ fallthrough; /* and start dma engine */
case sdma_event_e10_go_hw_start: case sdma_event_e10_go_hw_start:
/* This reference means the state machine is started */ /* This reference means the state machine is started */
sdma_get(&sde->state); sdma_get(&sde->state);
...@@ -2726,7 +2726,6 @@ static void __sdma_process_event(struct sdma_engine *sde, ...@@ -2726,7 +2726,6 @@ static void __sdma_process_event(struct sdma_engine *sde,
case sdma_event_e70_go_idle: case sdma_event_e70_go_idle:
break; break;
case sdma_event_e85_link_down: case sdma_event_e85_link_down:
/* fall through */
case sdma_event_e80_hw_freeze: case sdma_event_e80_hw_freeze:
sdma_set_state(sde, sdma_state_s80_hw_freeze); sdma_set_state(sde, sdma_state_s80_hw_freeze);
atomic_dec(&sde->dd->sdma_unfreeze_count); atomic_dec(&sde->dd->sdma_unfreeze_count);
...@@ -3007,7 +3006,7 @@ static void __sdma_process_event(struct sdma_engine *sde, ...@@ -3007,7 +3006,7 @@ static void __sdma_process_event(struct sdma_engine *sde,
case sdma_event_e60_hw_halted: case sdma_event_e60_hw_halted:
need_progress = 1; need_progress = 1;
sdma_err_progress_check_schedule(sde); sdma_err_progress_check_schedule(sde);
/* fall through */ fallthrough;
case sdma_event_e90_sw_halted: case sdma_event_e90_sw_halted:
/* /*
* SW initiated halt does not perform engines * SW initiated halt does not perform engines
...@@ -3021,7 +3020,7 @@ static void __sdma_process_event(struct sdma_engine *sde, ...@@ -3021,7 +3020,7 @@ static void __sdma_process_event(struct sdma_engine *sde,
break; break;
case sdma_event_e85_link_down: case sdma_event_e85_link_down:
ss->go_s99_running = 0; ss->go_s99_running = 0;
/* fall through */ fallthrough;
case sdma_event_e80_hw_freeze: case sdma_event_e80_hw_freeze:
sdma_set_state(sde, sdma_state_s80_hw_freeze); sdma_set_state(sde, sdma_state_s80_hw_freeze);
atomic_dec(&sde->dd->sdma_unfreeze_count); atomic_dec(&sde->dd->sdma_unfreeze_count);
...@@ -3252,7 +3251,7 @@ void _sdma_txreq_ahgadd( ...@@ -3252,7 +3251,7 @@ void _sdma_txreq_ahgadd(
tx->num_desc++; tx->num_desc++;
tx->descs[2].qw[0] = 0; tx->descs[2].qw[0] = 0;
tx->descs[2].qw[1] = 0; tx->descs[2].qw[1] = 0;
/* FALLTHROUGH */ fallthrough;
case SDMA_AHG_APPLY_UPDATE2: case SDMA_AHG_APPLY_UPDATE2:
tx->num_desc++; tx->num_desc++;
tx->descs[1].qw[0] = 0; tx->descs[1].qw[0] = 0;
......
...@@ -3227,7 +3227,7 @@ bool hfi1_tid_rdma_wqe_interlock(struct rvt_qp *qp, struct rvt_swqe *wqe) ...@@ -3227,7 +3227,7 @@ bool hfi1_tid_rdma_wqe_interlock(struct rvt_qp *qp, struct rvt_swqe *wqe)
case IB_WR_RDMA_READ: case IB_WR_RDMA_READ:
if (prev->wr.opcode != IB_WR_TID_RDMA_WRITE) if (prev->wr.opcode != IB_WR_TID_RDMA_WRITE)
break; break;
/* fall through */ fallthrough;
case IB_WR_TID_RDMA_READ: case IB_WR_TID_RDMA_READ:
switch (prev->wr.opcode) { switch (prev->wr.opcode) {
case IB_WR_RDMA_READ: case IB_WR_RDMA_READ:
...@@ -5067,7 +5067,7 @@ int hfi1_make_tid_rdma_pkt(struct rvt_qp *qp, struct hfi1_pkt_state *ps) ...@@ -5067,7 +5067,7 @@ int hfi1_make_tid_rdma_pkt(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
if (priv->s_state == TID_OP(WRITE_REQ)) if (priv->s_state == TID_OP(WRITE_REQ))
hfi1_tid_rdma_restart_req(qp, wqe, &bth2); hfi1_tid_rdma_restart_req(qp, wqe, &bth2);
priv->s_state = TID_OP(WRITE_DATA); priv->s_state = TID_OP(WRITE_DATA);
/* fall through */ fallthrough;
case TID_OP(WRITE_DATA): case TID_OP(WRITE_DATA):
/* /*
......
...@@ -216,7 +216,7 @@ int hfi1_make_uc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps) ...@@ -216,7 +216,7 @@ int hfi1_make_uc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
case OP(SEND_FIRST): case OP(SEND_FIRST):
qp->s_state = OP(SEND_MIDDLE); qp->s_state = OP(SEND_MIDDLE);
/* FALLTHROUGH */ fallthrough;
case OP(SEND_MIDDLE): case OP(SEND_MIDDLE):
len = qp->s_len; len = qp->s_len;
if (len > pmtu) { if (len > pmtu) {
...@@ -241,7 +241,7 @@ int hfi1_make_uc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps) ...@@ -241,7 +241,7 @@ int hfi1_make_uc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
case OP(RDMA_WRITE_FIRST): case OP(RDMA_WRITE_FIRST):
qp->s_state = OP(RDMA_WRITE_MIDDLE); qp->s_state = OP(RDMA_WRITE_MIDDLE);
/* FALLTHROUGH */ fallthrough;
case OP(RDMA_WRITE_MIDDLE): case OP(RDMA_WRITE_MIDDLE):
len = qp->s_len; len = qp->s_len;
if (len > pmtu) { if (len > pmtu) {
...@@ -414,7 +414,7 @@ void hfi1_uc_rcv(struct hfi1_packet *packet) ...@@ -414,7 +414,7 @@ void hfi1_uc_rcv(struct hfi1_packet *packet)
goto no_immediate_data; goto no_immediate_data;
else if (opcode == OP(SEND_ONLY_WITH_IMMEDIATE)) else if (opcode == OP(SEND_ONLY_WITH_IMMEDIATE))
goto send_last_imm; goto send_last_imm;
/* FALLTHROUGH */ fallthrough;
case OP(SEND_MIDDLE): case OP(SEND_MIDDLE):
/* Check for invalid length PMTU or posted rwqe len. */ /* Check for invalid length PMTU or posted rwqe len. */
/* /*
...@@ -515,7 +515,7 @@ void hfi1_uc_rcv(struct hfi1_packet *packet) ...@@ -515,7 +515,7 @@ void hfi1_uc_rcv(struct hfi1_packet *packet)
wc.ex.imm_data = ohdr->u.rc.imm_data; wc.ex.imm_data = ohdr->u.rc.imm_data;
goto rdma_last_imm; goto rdma_last_imm;
} }
/* FALLTHROUGH */ fallthrough;
case OP(RDMA_WRITE_MIDDLE): case OP(RDMA_WRITE_MIDDLE):
/* Check for invalid length PMTU or posted rwqe len. */ /* Check for invalid length PMTU or posted rwqe len. */
if (unlikely(tlen != (hdrsize + pmtu + 4))) if (unlikely(tlen != (hdrsize + pmtu + 4)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment