Whamcloud - gitweb
LU-15220 lnet: use 'fallthrough' pseudo keyword for switch 66/45566/12
authorJian Yu <yujian@whamcloud.com>
Thu, 20 Jan 2022 18:19:34 +0000 (10:19 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Jan 2022 05:17:18 +0000 (05:17 +0000)
commit8fed107588b74c2a822421e7c0b136210d3dcf65
tree1cd5afa64ef51dab83efd9de2d636803bc6b9738
parentc5fb44f5ecf8494cd5a497947981bd6905ddc084
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>
Reviewed-on: https://review.whamcloud.com/45566
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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