Whamcloud - gitweb
LU-15220 lnet: use 'fallthrough' pseudo keyword for switch 66/45566/11
authorJian Yu <yujian@whamcloud.com>
Thu, 20 Jan 2022 18:19:34 +0000 (10:19 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 21 Jan 2022 21:29:06 +0000 (14:29 -0700)
commit17563df10b6c2dd1ebc451e9df8d3b8ffc6063a9
tree69ca70ca6f2f99508b9680ac435ca1e76a613059
parent167f81578390b315d6c06c40c931cb5f509369da
LU-15220 lnet: use 'fallthrough' pseudo keyword for switch

'/* fallthrough */' hits implicit-fallthrough error with GCC 11.

This patch replaces the existing '/* fallthrough */' comments and
its variants with the 'fallthrough' pseudo keyword, which was added
by Linux kernel commit v5.4-rc2-141-g294f69e662d1.

Test-Parameters: trivial
Change-Id: Icace4c9953950f86d3c48068d8c6bba7dd1160a5
Signed-off-by: Jian Yu <yujian@whamcloud.com>
12 files changed:
lnet/include/lnet/lib-lnet.h
lnet/klnds/gnilnd/gnilnd_cb.c
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd_cb.c
lnet/lnet/lib-move.c
lnet/lnet/net_fault.c
lnet/selftest/conctl.c
lnet/selftest/module.c
lnet/selftest/rpc.c
lnet/utils/lnetconfig/liblnetconfig_netlink.c