Whamcloud - gitweb
LU-15220 lnet: use 'fallthrough' pseudo keyword for switch
authorJian Yu <yujian@whamcloud.com>
Sun, 23 Jan 2022 09:21:13 +0000 (01:21 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 24 Jan 2022 05:41:39 +0000 (05:41 +0000)
commit2bc07001609c7240bf87f4743d7c15c5408b4b4e
tree0e43fc1149b7d1db597c7838aac9e30b6a32b07c
parentf87f6179a64889c19121c53963bab6ef7ad92bf0
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.

Lustre-change: https://review.whamcloud.com/45566
Lustre-commit: TBD (from 17563df10b6c2dd1ebc451e9df8d3b8ffc6063a9)

Test-Parameters: trivial
Change-Id: Icace4c9953950f86d3c48068d8c6bba7dd1160a5
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46274
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
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/lnet/lib-move.c
lnet/lnet/net_fault.c
lnet/selftest/conctl.c
lnet/selftest/module.c
lnet/selftest/rpc.c