]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:39:04 +0000 (12:39 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 8 Dec 2020 08:06:57 +0000 (10:06 +0200)
commitc8c9daf8ee41343d46b47e1c40d7e756a2dd94e1
tree3daadfdd5f7debd2f8f4657618f15526be67a8af
parent3e00f4bc56dcf9d44b407e8727a0582b44aa6c99
rtw88: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a
warning by replacing a /* fall through */ comment with the new
pseudo-keyword macro fallthrough; instead of letting the code fall
through to the next case.

Notice that Clang doesn't recognize /* fall through */ comments as
implicit fall-through markings.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/967a171da3db43e4cdf38104876b4ec1cde46359.1605896060.git.gustavoars@kernel.org
drivers/net/wireless/realtek/rtw88/fw.c