2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 10:13:58 +08:00
linux-next/drivers/infiniband/sw/siw
Gustavo A. R. Silva cea743f2ea RDMA/siw: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where
we are expecting to fall through.

This patch fixes the following warnings:

drivers/infiniband/sw/siw/siw_qp_rx.c: In function ‘siw_rdmap_complete’:
drivers/infiniband/sw/siw/siw_qp_rx.c:1214:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
   wqe->rqe.flags |= SIW_WQE_SOLICITED;
   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
drivers/infiniband/sw/siw/siw_qp_rx.c:1215:2: note: here
  case RDMAP_SEND:
  ^~~~

drivers/infiniband/sw/siw/siw_qp_tx.c: In function ‘siw_qp_sq_process’:
drivers/infiniband/sw/siw/siw_qp_tx.c:1044:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
    siw_wqe_put_mem(wqe, tx_type);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/sw/siw/siw_qp_tx.c:1045:3: note: here
   case SIW_OP_INVAL_STAG:
   ^~~~
drivers/infiniband/sw/siw/siw_qp_tx.c:1128:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
    siw_wqe_put_mem(wqe, tx_type);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/sw/siw/siw_qp_tx.c:1129:3: note: here
   case SIW_OP_INVAL_STAG:
   ^~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-07-11 15:03:42 -03:00
..
iwarp.h
Kconfig rdma/siw: Add missing dependencies on LIBCRC32C and DMA_VIRT_OPS 2019-07-11 11:39:11 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00
siw_cm.c rdma/siw: Remove set but not used variable 's' 2019-07-11 11:41:10 -03:00
siw_cm.h rdma/siw: connection management 2019-07-02 17:03:40 -03:00
siw_cq.c rdma/siw: Use proper enumerated type in map_cqe_status 2019-07-10 15:25:30 -03:00
siw_main.c RDMA/siw: Remove unnecessary kthread create/destroy printouts 2019-07-10 14:27:44 -03:00
siw_mem.c rdma/siw: application buffer management 2019-07-02 17:03:40 -03:00
siw_mem.h rdma/siw: application buffer management 2019-07-02 17:03:40 -03:00
siw_qp_rx.c RDMA/siw: Mark expected switch fall-throughs 2019-07-11 15:03:42 -03:00
siw_qp_tx.c RDMA/siw: Mark expected switch fall-throughs 2019-07-11 15:03:42 -03:00
siw_qp.c rdma/siw: queue pair methods 2019-07-02 17:03:41 -03:00
siw_verbs.c rdma/siw: application interface 2019-07-02 17:03:40 -03:00
siw_verbs.h rdma/siw: application interface 2019-07-02 17:03:40 -03:00
siw.h