linux/drivers/infiniband/hw/bnxt_re
Nathan Chancellor 9040c0d96f RDMA/bnxt_re: Fix clang -Wimplicit-fallthrough in bnxt_re_handle_cq_async_error()
Clang warns (or errors with CONFIG_WERROR=y):

  drivers/infiniband/hw/bnxt_re/main.c:1114:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
   1114 |         default:
        |         ^
  drivers/infiniband/hw/bnxt_re/main.c:1114:2: note: insert 'break;' to avoid fall-through
   1114 |         default:
        |         ^
        |         break;
  1 error generated.

Clang is a little more pedantic than GCC, which does not warn when
falling through to a case that is just break or return. Clang's version
is more in line with the kernel's own stance in deprecated.rst, which
states that all switch/case blocks must end in either break,
fallthrough, continue, goto, or return. Add the missing break to silence
the warning.

Closes: https://github.com/ClangBuiltLinux/linux/issues/1950
Fixes: b02fd3f79e ("RDMA/bnxt_re: Report async events and errors")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20231020-bnxt_re-implicit-fallthrough-v1-1-b5c19534a6c9@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2023-10-22 10:31:01 +03:00
..
bnxt_re.h RDMA/bnxt_re: Remove a redundant flag 2023-08-07 16:39:42 +03:00
hw_counters.c bnxt_re: Update the debug counters for doorbell pacing 2023-07-30 14:37:04 +03:00
hw_counters.h bnxt_re: Update the debug counters for doorbell pacing 2023-07-30 14:37:04 +03:00
ib_verbs.c v6.6 merge window RDMA pull request 2023-09-01 16:49:33 -07:00
ib_verbs.h RDMA/bnxt_re: Add support for dmabuf pinned memory regions 2023-08-15 15:54:08 -03:00
Kconfig RDMA/bnxt_re: Depend on bnxt ethernet driver and not blindly select it 2021-04-19 14:57:03 -03:00
main.c RDMA/bnxt_re: Fix clang -Wimplicit-fallthrough in bnxt_re_handle_cq_async_error() 2023-10-22 10:31:01 +03:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
qplib_fp.c v6.6 merge window RDMA pull request 2023-09-01 16:49:33 -07:00
qplib_fp.h RDMA/bnxt_re: Prevent handling any completions after qp destroy 2023-07-17 08:02:13 +03:00
qplib_rcfw.c v6.6 merge window RDMA pull request 2023-09-01 16:49:33 -07:00
qplib_rcfw.h RDMA/bnxt_re: Reorg the bar mapping 2023-06-21 14:13:17 -03:00
qplib_res.c v6.6 merge window RDMA pull request 2023-09-01 16:49:33 -07:00
qplib_res.h RDMA/bnxt_re: Protect the PD table bitmap 2023-08-15 09:06:06 +03:00
qplib_sp.c RDMA/bnxt_re: Remove unnecessary variable initializations 2023-08-07 16:39:42 +03:00
qplib_sp.h RDMA/bnxt_re: Fix max_qp count for virtual functions 2023-08-07 16:39:42 +03:00
qplib_tlv.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
roce_hsi.h RDMA/bnxt_re: Update HW interface headers 2023-10-15 11:48:32 +03:00