OSDN Git Service

wlcore: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 8 Oct 2020 22:09:05 +0000 (17:09 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 11:30:54 +0000 (13:30 +0200)
commita821e3858e4dec2d6505258fea46e020af8532c6
treef5ceb8a4d731be0b0b6add0e35fd8ae047419b9f
parent256ff2ef6c14bcb4bf9707e4547b77c582753c00
wlcore: Use fallthrough pseudo-keyword

In order to enable -Wimplicit-fallthrough for Clang[1], replace the
existing /* fall-through */ comments with the new pseudo-keyword
macro fallthrough[2].

[1] https://git.kernel.org/linus/e2079e93f562c7f7a030eb7642017ee5eabaaa10
[2] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201008220905.GA8040@embeddedor
drivers/net/wireless/ti/wlcore/main.c