]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: iwl-drv: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:36:35 +0000 (12:36 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 11 Dec 2020 18:21:28 +0000 (20:21 +0200)
commit302f3210b72569c5e3b53789f983eb6895cdfe5c
tree8472a3d579c62330333b6d98e42bf0386c9a51a0
parent443181dd2a45e793423af68261b1ac6d0ad1b3b8
iwlwifi: iwl-drv: 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/edd98d194bfc98b4be93a9bdc303630b719c0e66.1605896060.git.gustavoars@kernel.org
drivers/net/wireless/intel/iwlwifi/iwl-drv.c