9040c0d96f
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:
|
||
---|---|---|
.. | ||
bnxt_re.h | ||
hw_counters.c | ||
hw_counters.h | ||
ib_verbs.c | ||
ib_verbs.h | ||
Kconfig | ||
main.c | ||
Makefile | ||
qplib_fp.c | ||
qplib_fp.h | ||
qplib_rcfw.c | ||
qplib_rcfw.h | ||
qplib_res.c | ||
qplib_res.h | ||
qplib_sp.c | ||
qplib_sp.h | ||
qplib_tlv.h | ||
roce_hsi.h |